Resource information
URL | https://api.softnetsportstatscore.com/v2/events/{event_id}/sub-participants/{lineupId} | |
---|---|---|
XSD | Method | PATCH |
Description | Updates sub-participants for given event. | |
Authorization required | Yes | |
Internal method | Yes |
Parameters
Name | Data type | Description | |||
---|---|---|---|---|---|
event_id | xsd:int | REQUIRED. The event identifier | |||
lineup_id | xsd:int | REQUIRED. Unique identifier of the sub-participant in event | |||
token | xsd:string | REQUIRED. More information concerning authorization in API introduction section | |||
participant_name | xsd:string | Sub-participants name. | Only when don't have participant_id | xsd:int | . Sub-participants id. (if participant exist at system)name. |
participant_team_id | xsd:int | REQUIRED Sub-participants team id | |||
position | xsd:string | Sub-participants position | |||
shirt_nr | xsd:int | Sub-participants 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 | ParametersParameters |
---|---|
curl -X PATCH -H "Content-Type: application/x-www-form-urlencoded" -d '{"id":{lineup_id}, "shirt_nr":{shirt_number},"participant_name":"{participant_name}","participant_team_id":"{team_id}","position":null}' "https://api.softnetsportstatscore.com/v2/events/{event_id}/sub-participants/{lineup_id}?token={token}" | token, event_id, lineup_id, data |
...