Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Resource information

URLhttps://api.softnetsport.com/v2/events/{event_id}/incidents/
XSD 
MethodPOST

Description

Creates incident for event.
Authorization requiredYes

Parameters 

NameData typeDescription
event_idxsd:intREQUIRED. The event identifier
tokenxsd:stringREQUIRED. More information concerning authorization in API introduction section
incidentxsd:arrayREQUIRED. Array with incident parameters
incident[incident_id]xsd:intREQUIRED. Incident id in data.sports.incidents node for event from resource sports.show
incident[status_id]xsd:intREQUIRED. Status id in data.sports.statuses node for event from resource sports.show
incident[participant_id]xsd:intParticipant id
incident[participant_team_id]xsd:intParticipant team id
incident[participant_name]xsd:stringParticipant name.
incident[minute]xsd:intIncident time minute
incident[second]xsd:intIncident time second
incident[home_score]xsd:intHome Score
incident[away_score]xsd:intAway Score
incident[home_score1]xsd:intHome Score 1
incident[away_score1]xsd:intAway Score 1
incident[home_score2]xsd:intHome Score 2
incident[away_score2]xsd:intAway Score 2
incident[add_data]xsd:stringCustom information
incident[display_info]xsd:stringLabel for incidents
incident[old_added_id]xsd:intDEPRECATED. Old Id

Output elements

.data
 
messageResponse info message.
statusResponse code.
idIncident id

Sample curl call

  • No labels