Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Description

Updates participant in lineups for given event.
Authorization requiredYes
Internal methodYes

...

.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}/lineups/{lineup_id}?token={token}"

token, event_id, lineup_id, data