Updates a task specified by id, in one of conditions: the calendar of the task is public, OR the authenticated user is the owner of the calendar, OR the user belongs to the group of the calendar, OR the task is delegated to the user, OR the calendar has been shared with the user or with a group of the user. This accepts HTTP PUT request, with JSON object (evObject) in the request body, and task id in the path. All the attributes are optional, any absent/invalid attributes will be ignored. id, href, calendar are Read-only. For example: { "name": "...", "note": "...", "categoryId": "", "from": "...", "to": "...", "delegation": "...", "", "priority": "", "reminder": , "status": "" }
URL:
http://{domain_name}/{rest_context_name}/private/v1/calendar/tasks/{id}
Parameters:
Required (path parameters):
Parameter | Description |
---|---|
id | Identity of the task. |
Optional (query parameters): No
Request example:
PUT: http://localhost:8080/rest/private/v1/calendar/tasks/Task123
Response:
HTTP status code: 200 if updated successfully, 404 if task not found, 400 if attributes are invalid, 401 if the user does not have edit permission, 503 if any error during save process.