events.sub-participants.store

Resource information

URLhttps://api.statscore.com/v2/events/{event_id}/sub-participants/
MethodPOST

Description

Adds sub-participant to events.
Authorization requiredYes
Internal methodYes

Parameters 

Name
Data type
Description
event_idxsd:intREQUIRED. The event identifier
tokenxsd:stringREQUIRED. More information concerning authorization in API introduction section
participant_namexsd:stringREQUIRED or participant_id. Sub-participant's name.
participant_idxsd:intREQUIRED or participant_name Sub-participant's id (if participant exist at system)
participant_team_idxsd:intREQUIRED. Sub-participant's team id
positionxsd:stringSub-participant's position
shirt_nrxsd:intSub-participant's shirt number

Response

.data
 
..lineups
 
idLineup's id.
participant_idParticipant's id.
participant_team_idParticipant's team id.
participant_nameParticipant's name.
shirt_nrParticipnat's shirt number.
positionParticipant's position.
functionParticipant's function. Ex. coach, player etc.
appearanceAppearance of field.

Sample curl call

Request
Parameters
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d '{"shirt_nr":{shirt_number},"participant_name":"{participant_name}","participant_team_id":"{team_id}","position":null}' "https://api.statscore.com/v2/events/{event_id}/sub-participants?token={token}"

token, event_id, data