Skip to content
Suomi

Change a check list

PATCH
/v1/projects/{projectId}/check-lists/{checkListId}
Code sample: Shell / cURL
curl --request PATCH \
--url https://api.whatsbuilt.fi/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/check-lists/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "description": "example", "items": [ { "name": "example", "description": "example", "required": true } ] }'

A name or description changes the list itself. items that differ from the current version make a new version; steps pinned to an older version keep it.

projectId
required
string format: uuid
checkListId
required
string format: uuid
Media typeapplication/json

The body of updateCheckList.

object
name
string
>= 1 characters <= 255 characters
description
string | null
<= 20000 characters
items

The whole list. A list that differs from the current version makes a new version; results keep the version they were recorded against. A version holds at most 256 KiB of checks serialized as JSON; more answers 400 VALIDATION_ERROR.

Array<object>
>= 1 items <= 100 items

A check of a check-list body.

object
name
required
string
>= 1 characters <= 255 characters
description
string | null
<= 20000 characters
required

Default true

boolean

Example generated

{
"name": "example",
"description": "example",
"items": [
{
"name": "example",
"description": "example",
"required": true
}
]
}

The check list

Media typeapplication/json

A live check list.

object
id
required

The check list.

string format: uuid
project_id
required

Null for the organisation’s own check list

string | null format: uuid
organisation_id
required

Its organisation.

string format: uuid
name
required

Its name.

string
description
required

Its description.

string | null
created_by
required

Who created it.

string | null
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/
created_at
required

When it was created.

string
modified_date
required

When it was changed last.

string
current_version
required
One of:

Its current version.

object
id
required

The version.

string format: uuid
version
required

Its number.

integer format: int32
created_at
required

When it was made.

string
items
required

Its items.

Array<object>

An item of a check-list version.

object
id
required

The item_id a check result names

string format: uuid
sort_order
required

Its place.

integer format: int32
name
required

Its name.

string
description
required

Its description.

string | null
required
required

True when it must pass.

boolean
changed_at
required

The row’s change time.

string
deleted
required
boolean

Example

{
"deleted": false
}

Invalid body, parameters or Idempotency-Key

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

Missing, malformed, expired or revoked token

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

INSUFFICIENT_SCOPE; INSUFFICIENT_PROJECT_ROLE when the project role the scopes give does not cover the write, or the project is not the integration’s; PUBLIC_API_DISABLED when the project’s owning organisation has turned the API off

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

No such project or check list, or the check list is the organisation’s own

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

CHECK_GROUP_VERSION_CONFLICT: changed at the same moment; read it and send again

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

IDEMPOTENCY_KEY_REUSED: the key was used with another body

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

RATE_LIMITED; wait for Retry-After seconds

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}