Calendars

You can create any number of Calendars to categorize Events. Each Calendar can be assigned a different color to differentiate the Events in different Calendars.

Model Definition

Relations

Key
Relation
Type
Relation Field(s)

events

Has many

calendarEvent.calendar_id

Traits

  • Sortable

List

Get a list of all Calendars.

Definition

GET /api/calendars

Example Request

$client = new GuzzleHttp\Client(['base_uri' => 'https://{tenant}.intratool.de']);
$response = $client->request('GET', '/api/calendars', [
    'headers' => ['Authorization' => "Bearer {accessToken}"]
]);

Example Response Body

Show

Show a single Calendar by id.

Definition

GET /api/calendars/{id}

Example Request

Example Response

Create

Create a new Calendar.

Definition

POST /api/calendars

Request Keys

Key
Type
Default
Description

name*

string

-

The name of the Calendar.

color*

string

-

The HEX color of the Calendar.

sort_number

integer

Current highest +1

The index of the Calendar.

Keys with * are required.

Example Request

Example Response Body

Update

Update an existing Calendar by id.

Definition

PUT /api/calendar-event/{id}

Request Keys

Key
Type
Default
Description

name

string

-

The name of the Calendar.

color

string

-

The HEX color of the Calendar.

sort_number

integer

Current highest +1

The index of the Calendar.

Example Request

Example Response

Delete

Delete an existing Calendar by id.

Definition

DELETE /api/calendars/{id}

Example Request

Example Response

Last updated