CalendarEvents

The calendar allows CalendarEvents to be categorized by Calendars and then assigned to relevant Departments.

Model Definition

Alias

calendarEvent

Relations

Key
Relation
Type
Relation Field(s)

user

Belongs to

user_id

calendar

Belongs to

calendar_id

departments

Belongs to many

Intermediate table

Computed Properties

  • hash - The hashed id of the CalendarEvent.

Traits

  • TriggersNotifications

Interval Syntax

Interval
Sub-Type
Syntax
Description

daily

d:::1

Repeats every day.

weekly

w:::1

Repeats every week.

with weekdays

w:::1d::1,2,3,4,5

Repeats on the 1st, 2nd, 3rd, 4th and 5th day each week.

monthly

day

m:::1d::1

Repeats on the 1st day each month.

week

m:::1w::1d::1

Repeats on the 1st day each week each month.

yearly

day

y:::1d::1

Repeats on the 1st day each year.

week

y:::1w::1d::1

Repeats on the 1st day each week each month.

recurrence

r:::1

Ends the repeating after 1 recurrence. Only usable for interval_end.

List

Get a list of all CalendarEvents the current authenticated User is allowed to view.

Definition

GET /api/calendar-events

Example Request

Example Response Body

Show

Show a single CalendarEvent by id.

Definition

GET /api/calendar-events/{id}

Example Request

Example Response

Create

Create a new CalendarEvent.

Definition

POST /api/calendar-events

Request Keys

Key
Type
Default
Description

calendar_id*

integer

-

The related Calendar.

department_ids*

string

-

The Departments that are allowed to see the CalendarEvent (separated by commas).

title*

string

-

The title of the CalendarEvent.

all_day*

boolean

-

Whether the CalendarEvent is a full day appointment.

start*

date_time

-

When the CalendarEvent starts.

end*

date_time

-

When the CalendarEvent ends.

interval

string

-

When to repeat the CalendarEvent.

interval_end

string

-

When to end the repeating.

location

string

-

Location of the CalendarEvent.

description

string

-

Description of the CalendarEvent.

Keys with * are required.

Advanced Key-Specifications

  • interval - The syntax for intervals can be found here.

  • interval_end - The syntax for intervals can be found here.

Example Request

Example Response Body

Update

Update an existing CalendarEvent by id.

Definition

PUT /api/calendar-event/{id}

Request Keys

Key
Type
Default
Description

calendar_id

integer

-

The related Calendar

department_ids

string

-

The Departments that are allowed to see the CalendarEvent (separated by commas).

title

string

-

The title of the CalendarEvent.

all_day

boolean

-

Whether the CalendarEvent is a full day appointment.

start

date_time

-

When the CalendarEvent starts.

end

date_time

-

When the CalendarEvent ends.

interval

string

-

When to repeat the CalendarEvent.

interval_end

string

-

When to end the repeating.

location

string

-

Location of the CalendarEvent.

description

string

-

Description of the CalendarEvent.

Advanced Key-Specifications

  • interval - The syntax for intervals can be found here.

  • interval_end - The syntax for intervals can be found here.

Example Request

Example Response

Delete

Delete an existing CalendarEvent by id.

Definition

DELETE /api/calendar-events/{id}

Example Request

Example Response

Last updated