v5

OpenAPI 3.1.02026-08-037720751.3 KB
Attributes

Create a status

Add a new status to a status attribute on either an object or a list.

When target is objects, the required scopes are object_configuration:read-write. When target is lists, the required scopes are list_configuration:read-write.

post/v2/{target}/{identifier}/attributes/{attribute}/statuses

Path parameters

target'lists' | 'objects' required

Whether the attribute is on an object or a list.

Example:lists
identifierstring required

A UUID or slug to identify the object or list the status attribute belongs to.

Example:33ebdbe9-e529-47c9-b894-0ba25e9c15c0
attributestring required

A UUID or slug to identify the attribute the status will belong to.

Example:41252299-f8c7-4b5e-99c9-4ff8321d2f96

Request body

Example request

{
  "data": {
    "title": "In Progress",
    "celebration_enabled": true,
    "target_time_in_status": "P0Y0M1DT0H0M0S"
  }
}

Response

Success

Example response

{
  "data": {
    "id": {
      "workspace_id": "14beef7a-99f7-4534-a87e-70b564330a4c",
      "object_id": "97052eb9-e65e-443f-a297-f2d9a4a7f795",
      "attribute_id": "41252299-f8c7-4b5e-99c9-4ff8321d2f96",
      "status_id": "11f07f01-c10f-4e05-a522-33e050bc52ee"
    },
    "title": "In Progress",
    "target_time_in_status": "P0Y0M1DT0H0M0S"
  }
}