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

Custom sorts

GroupDescription
aliveUsers with status active, created or invited go before users with status deactivated or deleted

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.

POST /api/v1/users

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.

PUT /api/v1/users/:user_id

ParameterDescription
user_idThe ID of the user to update

Example response:

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

This endpoint returns a user.

GET /api/v1/users/:user_id

ParameterDescription
user_idThe ID of the user to return

Example response:

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

This endpoint returns users.

GET /api/v1/users

Example response:

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

This endpoint deletes a user.

DELETE /api/v1/users/:user_id

ParameterDescription
user_idThe ID of the user to delete