Fleet setup
Groups
Group management
Fetch a list of Groups
GET
https://demo.traccar.org/api/groups
Without any params, returns a list of the Groups the user belongs 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 Group
POST
https://demo.traccar.org/api/groups
Body
application/json
idinteger<int64>Unique group identifier
namestringGroup display name
groupIdinteger<int64>Parent group identifier for nested grouping
attributesobjectArbitrary metadata attached to the group
Response
OK
400Bad Request
No permission
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Fetch a Group
GET
Parameters
idintegerrequiredpathResponse
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Update a Group
PUT
Body
application/json
idinteger<int64>Unique group identifier
namestringGroup display name
groupIdinteger<int64>Parent group identifier for nested grouping
attributesobjectArbitrary metadata attached to the group
Parameters
idintegerrequiredpathResponse
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Delete a Group
DELETE
Parameters
idintegerrequiredpathResponse
204No Content
No Content
401Unauthorized
Unauthorized
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)