/events (POST)

Allows you to copy a calendar event.

As a result, the event will have the current date as start date. All users and files of the event are copied, as well as all child events.

API Request Details

URL

POST/api/v1/calendar/events

Request Type

POST

Sample Request

https://<TENANT_URL>/api/v1/calendar/events

Request Body

Request Body Parameters

Parameter

Description

referenceEventId

ID of the event to be copied

autoActivate

Specifies whether the new event should be activated directly if possible. All users defined in the event and its hierarchy will see the event in their calendar.

notify

Specifies whether the SAP Analytics Cloud system should notify affected users about the activation of the event. This parameter is only relevant if you have set autoActivate to true.

Sample Request Body

{
	“referenceEventId”: “exampleEventId”,
	“autoActivate”: true,
	“notify”: false
}

Successful Sample Response

HTTP Status Code

Response Body

201

{
    “event”: {
        “id”: “idOfEventCopy”,
        “utcStartDate”: <UTCTimestamp in ISO 8601 format>,
        “utcEndDate”: <UTCTimestamp in ISO 8601 format>
    },
    “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