Docs

Add Activity

POST /Activities

POST/Activities

Creates an organization activity with crew and department participants and locations. A global activity needs the organization activities add permission, and a caller who is not an organization admin needs activity-add access on every department and location attached; crew ids come from Crew_GetCrew, department ids from Organizations_GetDepartments and location ids from Locations_GetLocations, and it needs an organization token and organization basic access.

Request Body

FieldTypeRequiredDescription
typestringOptional
namestringOptional
descriptionstringOptional
startDateTimedate-timeOptional
endDateTimedate-timeOptional
exactLocationstringOptional
isGlobalbooleanOptional
isAllDaybooleanOptional
recurrenceRulesAddActivityRequestRecurrenceRuleOptional
locationsuuid[]Optional
crewMembersAddActivityRequestActivityParticipant[]Optional
departmentsAddActivityRequestActivityParticipant[]Optional

AddActivityRequestRecurrenceRule

FieldTypeDescription
frequencystring| null
intervalinteger
daysOfWeekstring[]| null
endDatedate-time

AddActivityRequestActivityParticipant

FieldTypeDescription
iduuid
isRequiredboolean
rolestring| null