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

Resource information

URLhttps://api.softnetsport.com/v2/events/{event_id}/sub-participants/{lineupId}
XSD
MethodPATCH

Description

Updates sub-participants for given event.
Authorization requiredYes
Internal methodYes

Parameters 

Name
Data type
Description
event_idxsd:intREQUIRED. The event identifier
lineup_idxsd:intREQUIRED. Unique identifier of the sub-participant in event
tokenxsd:stringREQUIRED. More information concerning authorization in API introduction section
participant_namexsd:stringSub-participants name.
participant_idxsd:intSub-participants id. (if participant exist at system)
participant_team_idxsd:intREQUIRED Sub-participants team id
positionxsd:stringSub-participants position
shirt_nrxsd:intSub-participants 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 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.softnetsport.com/v2/events/{event_id}/sub-participants/{lineup_id}?token={token}"

token, event_id, lineup_id, data


  • No labels