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

Resource information

URLhttps://api.softnetsport.com/v2/events/
XSD
MethodPATCH

Description

Update details for event.
Authorization requiredYes
Internal methodYes

Parameters

NameData typeDescription
event_idxsd:intREQUIRED. The requested event identifier
tokenxsd:stringREQUIRED. More information concerning authorization in API introduction section

POST parameters

NameData typeDescription
.event

event_status_idxsd:int
scout_statusxsd:intRelation status
coverage_typexsd:string
venue_idxsd:int
start_datexsd:date
stage_id
xsd:int
round_idxsd:intThe round identifier
group_idxsd:intThe group identifier
neutral_venuexsd:string0/1
ft_onlyxsd:stringPossible value:
  • "yes"
  • "no"
scoutsfeedxsd:stringPossible value:
  • "yes"
  • "no"
is_protocol_verifiedxsd:stringPossible value:
  • "yes"
  • "no"
is_result_verifiedxsd:stringPossible value:
  • "yes"
  • "no"

provider_id

xsd:int

The provider identifier

.details



.{id_of_detail}

xsd:int

REQUIRED. The requested event detail identifier

{detail_value}

xsd:string

REQUIRED. The updated value.

Output elements

.data

message

Response info message.

status

Response code.

Sample curl call

Request
 Parameters
curl -X PATCH -H 'Content-Type: application/x-www-form-urlencoded' -d "details[55]=55&details[56]=yes" 
"https://api.softnetsport.com/v2/events/{event_id}?token={token}"

token, event_id

curl -X PATCH -H 'Content-Type: application/x-www-form-urlencoded' -d "event[id]=55&event[venue_id]=15" 
"https://api.softnetsport.com/v2/events/{event_id}?token={token}"

token, event_id

  • No labels