Resource information
URL | https://api.softnetsport.com/v2/events/{event_id}/incidents/{incidnet_id} |
---|---|
XSD | |
Method | PATCH |
Description | Updates incident for event. |
Authorization required | Yes |
Internal method | Yes |
Parameters
Name | Data type | Description |
---|---|---|
event_id | xsd:int | REQUIRED. The event identifier |
token | xsd:string | REQUIRED. More information concerning authorization in API introduction section |
incident_id | xsd:int | REQUIRED. The incident identifier. |
incident | xsd:array | REQUIRED. Array with incident parameters |
incident[participant_id] | xsd:int | Participant id |
incident[participant_team_id] | xsd:int | Participant team id |
incident[participant_name] | xsd:string | Participant name. |
incident[minute] | xsd:int | Incident time minute |
incident[second] | xsd:int | Incident time second |
incident[home_score] | xsd:int | Home Score |
incident[away_score] | xsd:int | Away Score |
incident[home_score1] | xsd:int | Home Score 1 |
incident[away_score1] | xsd:int | Away Score 1 |
incident[home_score2] | xsd:int | Home Score 2 |
incident[away_score2] | xsd:int | Away Score 2 |
incident[add_data] | xsd:string | Custom information |
incident[display_info] | xsd:string | Label for incidents |
incident[old_added_id] | xsd:int | DEPRECATED. Old Id |
Output elements
.data | |
---|---|
message | Response info message. |
status | Response code. |
Sample curl call
Request | Parameters |
---|---|
curl -XPUT 'https://api.softnetsport.com/v2/events/{event_id}/incidents/{id}?token={token}'' | event_id, id, token
|