Skip to content

Accounts

List of valid attributes:

AttributeDescriptionSpecifics
created_atTimestamp of creationCannot be set
discarded_atNull or timestamp of removalCannot be set
nameName of the account-

Meta data: Permissions

GroupDescription
account_membershipContains permissions if account memberships can be managed
offboardingPermissions if offboardings can be viewed, created or edited
onboardingPermissions if onboardings can be viewed, created or edited
usersPermissions if users in account can be viewed or created

Show

Example response:

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

This endpoint returns a specific account.

HTTP Request

GET /api/v1/accounts/:account_id

URL Parameters

ParameterDescription
account_idThe ID of the account to retrieve

Create

Example request:

{
"data": {
"type": "account",
"attributes": {
"name": "New Account",
"terms": {
"accepted": true
}
}
}
}

Example response:

{
"data": {
"id": "f4db9b2a-386e-4e17-9f04-b28c68048b34",
"type": "identity",
"attributes": {
...
}
}
}

This endpoint creates a new account for the currently logged in user.

HTTP Request

POST /api/v1/accounts

Arguments

ParameterDescription
nameAccount name
terms.acceptedMust be true

Update

Example request:

{
"data": {
"type": "account",
"attributes": {
"name": "New Name"
}
}
}

Example response:

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

This endpoint updates a specific account.

HTTP Request

PUT /api/v1/accounts/:account_id

URL Parameters

ParameterDescription
account_idThe ID of the account to update