/
events.lineups.store[deprecated]
events.lineups.store[deprecated]
Resource information
URL | https://api.statscore.com/v2/events/{event_id}/lineups/ |
---|---|
Method | POST |
Description | Adds participant to lineups. |
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 |
participant_name | xsd:string | REQUIRED. Participant's name. |
participant_id | xsd:int | Participant's id |
participant_team_id | xsd:int | REQUIRED. Participant's team id |
position | xsd:string | Participant's position |
shirt_nr | xsd:int | Participant's shirt number |
Response
.data | |
---|---|
..lineups | |
id | Lineup's id. |
participant_id | Participant's id. |
participant_team_id | Participant's team id. |
participant_name | Participant's name. |
shirt_nr | Participnat's shirt number. |
position | Participant's position. |
function | Participant's function. Ex. coach, player etc. |
appearance | Appearance 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}/lineups?token={token}" | token, event_id, data |
, multiple selections available,
Related content
events.sub-participants.store
events.sub-participants.store
More like this
events.lineups.update[deprecated]
events.lineups.update[deprecated]
More like this
events.lineups.index[deprecated]
events.lineups.index[deprecated]
More like this
events.sub-participants.update
events.sub-participants.update
More like this
events.stats.index
events.stats.index
More like this
events.participants.index
events.participants.index
More like this