Skip to content

Boarding Tasks

List of valid attributes:

AttributeDescriptionSpecifics
assignee_idID of the user assignedUUID of the user or blank
descriptionDescription of the taskType string
discarded_atDate of removalNull or timestamp, cannot be set
nameName of the taskType string, 50 characters max
boarding_idID of the on- or offboarding the task belongs toUUID of boarding, cannot be blank and cannot be set
boarding_stage_idID of the on- or offboarding stage the task belongs toUUID of the stage, Can’t be blank
statusStatus of the taskMust be either todo, in_progress or done

The following relationships can be included in requests:

RelationshipType
assigneebelongs to
boarding_stagebelongs to

Create

Example request:

{
"data": {
"type": "boarding_task",
"data": {
"attributes": {
"name": "Task Name",
"boarding_stage_id": "459e0b1e-caa0-4960-be61-dad0dbcd969e",
"status": "todo"
}
}
}
}

Example response:

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

This endpoint adds a new task to an on- or offboarding.

HTTP Request

POST /api/v1/boardings/:boarding_id/boarding_tasks

URL Parameters

ParameterDescription
boarding_idThe ID of the on- or offboarding to which the new task will be added

Update

Example request:

{
"data": {
"type": "boarding_task",
"attributes": {
"name": "Updated Task"
}
}
}

Example response:

{
"data": {
"id": "2474c2c0-3623-412a-9f06-3b9944983407",
"type": "boarding_task",
"attributes": {
...
}
}
}

This endpoint updates a task in an on- or offboarding.

HTTP Request

PUT /api/v1/boardings/:boarding_id/boarding_tasks/:boarding_task_id

URL Parameters

ParameterDescription
boarding_idThe ID of the on- or offboarding the task belongs to
boarding_task_idID of the task to be updated

List

This endpoint returns JSON structured like this:

{
"data": [
{
"id": "4dc62052-5134-4d0f-a236-78b16c7575bf",
"data": {
"type": "boarding_task",
"attributes": {
...
}
},
"meta": {
...
}
},
{
...
}
]
}

This endpoint returns boarding tasks for an on- or offboarding.

HTTP Request

GET /api/v1/boardings/:boarding_id/boarding_tasks

URL Parameters

ParameterDescription
boarding_idThe ID of the on- or offboarding from which to return tasks

Delete

Example response:

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

This endpoint deletes an on- or offboarding task.

HTTP Request

DELETE /api/v1/boardings/:boarding_id/boarding_tasks/:boarding_task_id

URL Parameters

ParameterDescription
boarding_idThe ID of the on- or offboarding from which to delete the task
boarding_task_idThe ID of the on- or offboarding task to delete

Show

Example response:

{
"data": {
"id": "3aab0a84-8ed3-4ddf-8572-f1799bb60e0a",
"type": "boarding_task",
"attributes": {
...
}
}
}

This endpoint returns a single task of an on- or offboarding.

HTTP Request

GET /api/v1/boardings/:boarding_id/boarding_tasks/:boarding_task_id

URL Parameters

ParameterDescription
boarding_idThe ID of the on- or offboarding from which to show a task
boarding_task_idThe ID of the on- or offboarding task to show