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

allbooleanquery

Can only be used by admins or managers to fetch all entities

userIdintegerquery

Standard users can use this only with their own userId

limitintegerquery

Limit the number of returned results

offsetintegerquery

Offset for pagination

keywordstringquery

Search keyword filter

Response

OK

Response fields application/json
Show child attributes
idinteger<int64>

Unique group identifier

namestring

Group display name

groupIdinteger<int64>

Parent group identifier for nested grouping

attributesobject

Arbitrary metadata attached to the group

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

namestring

Group display name

groupIdinteger<int64>

Parent group identifier for nested grouping

attributesobject

Arbitrary metadata attached to the group

Response

200OKGroup

OK

Response fields application/json
idinteger<int64>

Unique group identifier

namestring

Group display name

groupIdinteger<int64>

Parent group identifier for nested grouping

attributesobject

Arbitrary metadata attached to the group

400Bad Request

No permission

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)

Fetch a Group

GET
https://demo.traccar.org/api/groups/{id}

Parameters

idintegerrequiredpath

Response

200OKGroup

OK

Response fields application/json
idinteger<int64>

Unique group identifier

namestring

Group display name

groupIdinteger<int64>

Parent group identifier for nested grouping

attributesobject

Arbitrary metadata attached to the group

401Unauthorized

Unauthorized

404Not Found

Not found

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)

Update a Group

PUT
https://demo.traccar.org/api/groups/{id}

Body

application/json
idinteger<int64>

Unique group identifier

namestring

Group display name

groupIdinteger<int64>

Parent group identifier for nested grouping

attributesobject

Arbitrary metadata attached to the group

Parameters

idintegerrequiredpath

Response

200OKGroup

OK

Response fields application/json
idinteger<int64>

Unique group identifier

namestring

Group display name

groupIdinteger<int64>

Parent group identifier for nested grouping

attributesobject

Arbitrary metadata attached to the group

400Bad Request

Bad request

401Unauthorized

Unauthorized

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)

Delete a Group

DELETE
https://demo.traccar.org/api/groups/{id}

Parameters

idintegerrequiredpath

Response

204No Content

No Content

401Unauthorized

Unauthorized

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)