Skip to content

Boardings

List of valid attributes:

AttributeDescriptionSpecifics
boarding_template_idID of template to use for userCan only be set on create endpoint, Can be blank
boarding_type’onboarding’ or ‘offboarding’Must be set on creation, cannot be changed later
current_stage_idID of the current stage of the on- or offboardingCannot be set (as of now)
dayFirst or last workday of the employee who is being on- or offboardedISO-8601 date, is optional
discarded_atNull or timestamp of removalNull or timestamp, cannot be set
messageThe welcome message that the employee sees in their profile, Only used for onboardingsCan only be set on update endpoint, is optional
statusStatus of the on- or offboardingCan only be set on update endpoint, allowed values are: running completed cancelled
user_idID of the user to start an on- or offboarding forCan only be set on create endpoint, Must be set

The following relationships can be included in requests:

RelationshipType
userhas one

Meta data: Permissions

GroupDescription
actionsContains permissions to edit or delete an on- or offboarding

Meta data: Progress

Allowed valuesDescription
true/falseReturns progress of the on- or offboarding as object with 2 keys: done number of tasks done in current stage, total number of tasks in current stage

Create

Example request:

{
"data": {
"type": "boarding",
"data": {
"attributes": {
"boarding_template_id": "bfe62b17-8640-43b4-8c8c-7324aad4b8a9",
"user_id": "0047042d-8640-49a2-8047-a51d8b99588c"
}
}
}
}

Example response:

{
"data": {
"id": "52370ab1-7d08-4a03-b0ac-4ba63c8f209d",
"type": "boarding",
"attributes": {
...
}
}
}

On success, this endpoint starts an on- or offboading for a user based on a template. If no template is chosen it starts an empty process.

HTTP Request

POST /api/v1/boardings

Update

Example request:

{
"data": {
"type": "boarding",
"attributes": {
"status": "cancelled"
}
}
}

Example response:

{
"data": {
"id": "2ce7ed10-90d4-45da-b284-67966f488e2d",
"type": "boarding",
"attributes": {
...
}
}
}

This endpoint updates an on- or offboarding.

HTTP Request

PUT /api/v1/boardings/:boarding_id

URL Parameters

ParameterDescription
boarding_idThe ID of the on- or offboarding to update

Show

Example response:

{
"data": {
"id": "eb02f468-7a20-42fd-9981-95c70e0ee57d",
"type": "boarding",
"attributes": {
...
}
}
}

This endpoint returns an on- or offboarding.

HTTP Request

GET /api/v1/boardings/:boarding_id

URL Parameters

ParameterDescription
boarding_idID of the on- or offboarding to return

List

This endpoint returns JSON structured like this:

{
"data": [
{
"id": "e4bdb620-00c1-4d7d-9d26-f08c2e9dee09",
"data": {
"type": "boarding",
"attributes": {
...
}
},
"meta": {
...
}
},
{
...
}
]
}

This endpoint returns boardings.

HTTP Request

GET /api/v1/boardings

Delete

Example response:

{
"data": {
"id": "2ce7ed10-90d4-45da-b284-67966f488e2d",
"type": "boarding",
"attributes": {
...
}
}
}

This endpoint deletes an on- or offboarding.

HTTP Request

DELETE /api/v1/boardings/:boarding_id

URL Parameters

ParameterDescription
boarding_idThe ID of the on- or offboarding to delete