PUT /v1/calendar/events/{id}

Updates an event specified by id, in one of conditions: The authenticated user is the owner of the calendar of the event, OR for group calendars, the user has edit permission on the calendar, OR the calendar has been shared with the user, with edit permission, OR the calendar has been shared with a group of the user, with edit permission. This accepts HTTP PUT request, with JSON object (evObject) in the request body, and event id in the path. All the attributes of JSON object are optional, any absent/invalid ones will be ignored. Read-only attributes: id and href, originalEvent, calendar, recurrentId will be ignored too.

URL:

http://{domain_name}/{rest_context_name}/private/v1/calendar/events/{id}

Parameters:

  • Required (path parameters):

Parameter Description
id Identity of the updated event.
  • Optional (query parameters): No

Request example:

PUT: http://localhost:8080/rest/private/v1/calendar/events/Event123

Response:

 HTTP status code: 200 if updated successfully, 400 if parameters are not valid, 404 if event does not exist,
            401 if the user does not have edit permission, 503 if any error during save process.

Copyright ©2018. All rights reserved. eXo Platform SAS
blog comments powered byDisqus