Skip to content
Suomi

The organisation's fail-reason lists

GET
/v1/organisation/fail-reason-lists
Code sample: Shell / cURL
curl --request GET \
--url https://api.whatsbuilt.fi/v1/organisation/fail-reason-lists \
--header 'Authorization: Bearer <token>'

Fail-reason lists

Media typeapplication/json

{ data } of listOrganisationFailReasonLists.

object
data
required

The lists, default first, then by name.

Array<object>

One of the organisation’s fail-reason lists; template_count for an organisation admin only.

object
id
required
string format: uuid
name
required
string
reasons
required
Array<string>
is_default
required
boolean
modified_date
required
string
template_count
integer format: int32

Example generated

{
"data": [
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"reasons": [
"example"
],
"is_default": true,
"modified_date": "example",
"template_count": 1
}
]
}

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, or PUBLIC_API_DISABLED when an admin of the integration’s organisation, or on a per-project route of 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"
}

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"
}

Not available yet

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"
}