PUT /v1/calendar/calendars/{id}

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

URL:

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

Parameters:

  • Required (path parameters):

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

Request example:

 PUT: http://localhost:8080/rest/private/v1/calendar/calendars/demo-defaultCalendarId

Response:

 HTTP status code: 200 if updated successfully, 404 if calendar not found,
            401 if the user does not have edit permission, 403 if user submit invalid data to update
            503 if any error during save process.

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