Calendar operations for K8 HQ Content API. Requests, permissions and responses.
Add a timed event
POST/calendars/{calendar}/entries
For API tokens with calendar:write and the web app.
Parameters
| Name | Type | Description |
calendar (path) required | string | Calendar ID. |
Request body (JSON)
| Field | Type | Description |
end required | string | After the start and within 31 days of it. |
start required | string | |
title required | string | |
zone required | string | IANA time zone name such as America/New_York, or UTC. |
description | string | Plain text, up to 32 KB. |
location | string | |
Response body (JSON)
| Field | Type | Description |
end required | string | After the start and within 31 days of it. |
etag required | string | |
id required | string | |
start required | string | |
title required | string | |
tzdataVersion required | string | Version of the time zone data the server uses. |
version required | integer | |
zone required | string | IANA time zone name such as America/New_York, or UTC. |
description | string | Plain text, up to 32 KB. |
location | string | |
Responses
| Status | Body | Meaning |
| 201 | CalendarEntryResult | The new event. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 402 | application/problem+json | The organization is read-only because it is out of credit. |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | The calendar could not be opened or changed. Refresh and try again. |
| 503 | application/problem+json | Temporary failure; try again (unavailable). |
Edit a timed event
PATCH/calendars/{calendar}/entries/{entry}
Supply the new title, start, end and time zone. Omit the description or location to clear it.
For API tokens with calendar:write and the web app.
Parameters
| Name | Type | Description |
calendar (path) required | string | Calendar ID. |
entry (path) required | string | Calendar entry ID. |
If-Match (header) required | string | The event's ETag from the list or write response. |
Request body (JSON)
| Field | Type | Description |
end required | string | After the start and within 31 days of it. |
start required | string | |
title required | string | |
zone required | string | IANA time zone name such as America/New_York, or UTC. |
description | string | Plain text, up to 32 KB. |
location | string | |
Response body (JSON)
| Field | Type | Description |
end required | string | After the start and within 31 days of it. |
etag required | string | |
id required | string | |
start required | string | |
title required | string | |
tzdataVersion required | string | Version of the time zone data the server uses. |
version required | integer | |
zone required | string | IANA time zone name such as America/New_York, or UTC. |
description | string | Plain text, up to 32 KB. |
location | string | |
Responses
| Status | Body | Meaning |
| 200 | CalendarEntryResult | The updated event. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 402 | application/problem+json | The organization is read-only because it is out of credit. |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | The calendar could not be opened or changed. Refresh and try again. |
| 412 | application/problem+json | The entry version has changed. |
| 428 | application/problem+json | Supply the entry version in If-Match. |
| 503 | application/problem+json | Temporary failure; try again (unavailable). |
Delete an event
DELETE/calendars/{calendar}/entries/{entry}
For API tokens with calendar:write and the web app.
Parameters
| Name | Type | Description |
calendar (path) required | string | Calendar ID. |
entry (path) required | string | Calendar entry ID. |
If-Match (header) required | string | The event's ETag from the list or write response. |
Responses
| Status | Body | Meaning |
| 204 | | Event deleted. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 402 | application/problem+json | The organization is read-only because it is out of credit. |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | The calendar could not be opened or changed. Refresh and try again. |
| 412 | application/problem+json | The entry version has changed. |
| 428 | application/problem+json | Supply the entry version in If-Match. |
| 503 | application/problem+json | Temporary failure; try again (unavailable). |