Resource information
URL | https://api.softnetsport.com/v2/events/{event_id}/incidents/ |
---|---|
XSD | |
Method | POST |
Description | Creates 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 | xsd:array | REQUIRED. Array with incident parameters |
incident[incident_id] | xsd:int | REQUIRED. Incident id in data.sports.incidents node for event from resource sports.show |
incident[status_id] | xsd:int | REQUIRED. Status id in data.sports.statuses node for event from resource sports.show |
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. |
id | Incident id |
Sample curl call
Request | Parameters |
---|---|
curl -XPOST 'https://api.softnetsport.com/v2/events/{event_id}/incidents/?token={token}&incident[incident_id]={incident_id}' | token, event_id, incident_id
|