Skip to content
Suomi

Rename a project or change its settings

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

Needs the admin role on the project, which projects:write gives. handoff_approval answers 403 FEATURE_OFF where the organisation does not use the takt board.

projectId
required
string format: uuid
Media typeapplication/json

The body of updateProject.

object
name
string
>= 1 characters <= 255 characters
description
string
<= 20000 characters
allow_inspector_label_linking

Inspectors may link QR labels to elements

boolean
handoff_approval

Zone handoffs end at approved instead of received; only where the organisation uses the takt board

boolean

Example generated

{
"name": "example",
"description": "example",
"allow_inspector_label_linking": true,
"handoff_approval": true
}

The project

Media typeapplication/json

ProjectDetails: one project with its settings.

object
id
required
string format: uuid
name
required
string
description
required
string | null
phase
required

A project phase.

string
Allowed values: construction completed fm_active
owner_account_id
required
string format: uuid
owner_account_name
required
string | null
role
required

The principal’s own role on the project; null when it reaches the project as its organisation’s admin

string | null
allow_inspector_label_linking
required
boolean
handoff_approval
required
boolean
member_count
required

People on the project; integrations are not counted

integer format: int32
created_at
required
string
changed_at
required
string

Example

{
"phase": "construction"
}

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

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