/events/{eventId} (PATCH)
Allows you to update the status of a calendar event.
API Request Details
|
URL |
PATCH/api/v1/calendar/events/{eventId} |
|
Request Type |
PATCH |
Sample Request
https://<TENANT_URL>/api/v1/calendar/events/exampleEventId
Request Body
Request Body Parameters
|
Parameter |
Description |
Possible Values |
|---|---|---|
|
status |
The status that the event should have after the update |
open, onHold, canceled |
|
notify |
Specifies whether the SAP Analytics Cloud system should notify affected users about the status update |
true, false |
Sample Request Body
{
“status”: “open”,
“notify”: true
}
Status Transitions
|
Status in Request |
Current Event Status |
New Event Status |
|---|---|---|
|
open |
Inactive |
Open or In Progress |
|
open |
Canceled |
Open or In Progress |
|
open |
Successful |
Open or In Progress |
|
open |
Partially Successful |
Open or In Progress |
|
open |
Failed |
Open or In Progress |
|
open |
On Hold |
Open or In Progress or On Hold |
|
canceled |
Open |
Canceled |
|
canceled |
In Progress |
Canceled |
|
canceled |
On Hold |
Canceled |
|
onHold |
Open |
On Hold |
|
onHold |
In Progress |
On Hold |
|
onHold |
On Hold |
On Hold |
Successful Sample Response
|
HTTP Status Code |
Response Body |
|---|---|
|
200 |
{
“event”: {
“id”: ”exampleEventId”,
“status”: “open”,
},
“links”: [{
“rel”: "event",
“href”: "/api/v1/events/<eventID>"
}]
}
|
Error Responses
Response Body
{
error: {
code: <String>,
message: <String>,
details: <Array>
}
}
Possible HTTP Error Codes
|
HTTP Status Code |
Returns |
|---|---|
|
400 |
Bad Request |
|
401 |
Unauthorized |
|
404 |
Not Found |
|
429 |
Too Many Requests |
|
500 |
Server Error / Exception |