Skip to content
Suomi

The organisation's own inspection templates

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

Templates

Media typeapplication/json

{ data } of listOrganisationTemplates.

object
data
required

The organisation’s own templates, newest first.

Array<object>

pickTemplate() with step_count: one of the organisation’s templates in a list.

object
id
required
string format: uuid
name
required
string
description
required
string | null
applies_to_types
required
Array<string>
is_default
required
boolean
fail_reason_list_id
required
string | null format: uuid
created_by
required
string | null
created_at
required
string
modified_date
required
string
step_count
required
integer format: int32

Example generated

{
"data": [
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"description": "example",
"applies_to_types": [
"example"
],
"is_default": true,
"fail_reason_list_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"created_by": "example",
"created_at": "example",
"modified_date": "example",
"step_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"
}