SAP Sailing Analytics Webservices API Version 1.0

URL: /api/v1/events/{event-id}/update

Description:

Updates an existing event. Individual attributes of the Event object can be updated by providing a corresponding form parameter in the stream.


ispublic a boolean value, true/false, telling whether the event shall be public
officialwebsiteurl URL of the official web site
baseurl event base URL; will be used in e-mails sent out, e.g., for registration; defaults to the base URL of this request
leaderboardgroupids IDs of the leaderboard groups to add to the new event; to clear the list, provide a single empty occurrence as in
leaderboardgroupids=
. If the parameter is not mentioned once then the leaderboard groups are left unchanged. To provide multiple leaderboard groups, repeat the parameter multiple times, as in
leaderboardgroupids=57ecd43f-1e77-4e98-a245-2ec51e95f58b&leaderboardgroupids=158e326e-f831-45b2-a1c0-05926d548513
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"
		}
		
Back to Web Service Overview