Fleet setup
Calendars
Calendar management
Fetch a list of Calendars
GET
https://demo.traccar.org/api/calendars
Without params, it returns a list of Calendars the user has access to
Parameters
allbooleanqueryCan only be used by admins or managers to fetch all entities
userIdintegerqueryStandard users can use this only with their own userId
limitintegerqueryLimit the number of returned results
offsetintegerqueryOffset for pagination
keywordstringquerySearch keyword filter
Response
OK
401Unauthorized
Unauthorized
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Create a Calendar
POST
https://demo.traccar.org/api/calendars
Body
application/json
idinteger<int64>Unique calendar identifier
namestringCalendar display name
datastringbase64 encoded in iCalendar format
attributesobjectCustom calendar attributes
Response
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Fetch a Calendar
GET
Parameters
idintegerrequiredpathResponse
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Update a Calendar
PUT
Body
application/json
idinteger<int64>Unique calendar identifier
namestringCalendar display name
datastringbase64 encoded in iCalendar format
attributesobjectCustom calendar attributes
Parameters
idintegerrequiredpathResponse
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Delete a Calendar
DELETE
Parameters
idintegerrequiredpathResponse
204No Content
No Content
401Unauthorized
Unauthorized
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)