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 4 Next »

Resource information

URLhttps://api.softnetsport.com/v2/events/{event_id}/stats
XSD 
MethodPATCH

Description

Update details for event.
Authorization requiredYes

Parameters

NameData typeDescription
event_idxsd:intREQUIRED. The requested event identifier
tokenxsd:stringREQUIRED. More information concerning authorization in API introduction section

POST parameters

NameData typeDescription
.stats  
.{object_id}xsd:intREQUIRED. The identifier for object e.g participant(team)/lineup(person)
typexsd:stringREQUIRED. Type of object e.g team/person
participant_idxsd:intThe identifier for participant or null
participant_team_idxsd:intThe identifier for participant team or null
..stats  
..{stats_id}xsd:intREQUIRED. The identifier for stats
valuexsd:stringREQUIRED. The value of stats

Output elements

If fail: 

.data
 
messageResponse info message.
statusResponse code.

If success: 

.data
 
..statsAll participant or lineups for event
idThe identifier for object e.g participant(team)/lineup(person)
typeType of object e.g team/person
...statsList of stats
idStats/resault identifier
column_nameName of column in database or input element
valueStats value

Sample curl call

Request
 Parameters
curl -X PATCH -H 'Content-Type: application/x-www-form-urlencoded' -d "stats[30350][type]=team&stats[30350][stats][44]=0" 
"https://api.softnetsport.com/v2/events/{event_id}/stats?token={token}"

token, event_id

  • No labels