Updates an existing event. Individual attributes of the Event object can be updated by providing a corresponding form parameter in the stream.
Webservice Type: | PUT | |
Output format: | empty | |
Mandatory parameters: | none; when no parameters are provided the call is a no-op | |
Optional parameters: |
eventname name of the event
eventdescription the event description text
startdate the event start date in ISO format (e.g., 2017-08-17T10:00:00+0200)
startdateasmillis (alternative to startdate) the event start date in milliseconds since the epoch (Unix time)
enddate the event end date in ISO format (e.g., 2017-08-19T20:00:00+0200)
enddateasmillis (alternative to enddate) the event end date in milliseconds since the epoch (Unix time)
| venuename or venuelat/venuelng can be provided, as follows
venuename the name of the venue; if not provided, venuelat and venuelng can be used, and the name of
the town nearest to the coordinates will be used as a venue name then
venuelat decimal degrees; can be provided instead of a venuename, together with venuelng encoding the location of the event
venuelng decimal degrees; can be provided instead of a venuename, together with venuelat encoding the location of the event
|
Request method: | POST | |
Example: | curl -X POST -H "Authorization: Bearer w9YSIfr/Zf6a127SZDddkhdAtQuuv0Jm1PSXlo1Yvd0=" "http://dev.sapsailing.com/sailingserver/api/v1/events/createEvent" produces output { "eventid":cb8d7c69-fd82-45f6-a0a3-2920eb3307cb, "eventname":"Session admin 24-08-2017 16:46:40", "eventstartdate":1503586000961, "eventenddate":1504190800961, "leaderboardgroupid":99859e24-2fe0-4c4e-bcbb-2df272a26c2c, "regatta":"Session admin 24-08-2017 16:46:40", "leaderboard":"Session admin 24-08-2017 16:46:40" } |