Skip to content

Users

List of valid attributes:

AttributeDescriptionSpecifics
discarded_atNull or timestamp of removalCannot be set
emailEmail address of the userOptional, Unique on account if set
statusStatus of the userCannot be set. Is one of created (user can be invited), invited (user was invited), active (user completed the invite and can signin), deactivated (user was deactivated and cannot signin anymore) or deleted.
nameName of the user-
avatarFilename of avatar pictureOptional, should be without directory prefixes, e.g. avatar.png

The following relationships can be included in requests:

RelationshipType
accountbelongs_to
account_membershipshas_many
teamshas_many
team_membershipshas_many

Meta data: Permissions

GroupDescription
actionsContains permissions to edit or delete, invite a user or revoke an invitation

Create

Example request:

{
"data": {
"type": "user",
"attributes": {
"name": "Name",
"email": "[email protected]"
}
}
}

Example response:

{
"data": {
"id": "98815bd8-f3e6-41ec-8c4a-25a431ac6ce4",
"type": "user",
"attributes": {
...
}
}
}

This endpoint creates a user.

HTTP Request

POST /api/v1/users

Update

Example request:

{
"data": {
"type": "user",
"attributes": {
"name": "New Username"
}
}
}

Example response:

{
"data": {
"id": "98815bd8-f3e6-41ec-8c4a-25a431ac6ce4",
"type": "user",
"attributes": {
...
}
}
}

This endpoint updates a user.

HTTP Request

PUT /api/v1/users/:user_id

URL Parameters

ParameterDescription
user_idThe ID of the user to update

Show

Example response:

{
"data": {
"id": "98815bd8-f3e6-41ec-8c4a-25a431ac6ce4",
"type": "user",
"attributes": {
...
}
}
}

This endpoint returns a user.

HTTP Request

GET /api/v1/users/:user_id

URL Parameters

ParameterDescription
user_idThe ID of the user to return

List

Example response:

{
"data": [
{
"id": "98815bd8-f3e6-41ec-8c4a-25a431ac6ce4",
"type": "user",
"attributes": {
...
}
},
{
...
}
]
}

This endpoint returns users.

HTTP Request

GET /api/v1/users

Delete

Example response:

{
"data": {
"id": "98815bd8-f3e6-41ec-8c4a-25a431ac6ce4",
"type": "user",
"attributes": {
...
}
}
}

This endpoint deletes a user.

HTTP Request

DELETE /api/v1/users/:user_id

URL Parameters

ParameterDescription
user_idThe ID of the user to delete