Skip to content
Suomi

Change a maintenance entry

PATCH
/v1/projects/{projectId}/maintenance-entries/{entryId}
Code sample: Shell / cURL
curl --request PATCH \
--url https://api.whatsbuilt.fi/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/maintenance-entries/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "log_type": "routine_check", "title": "example", "description": "example", "occurred_at": "2026-04-15T12:00:00Z" }'

Its type, title, description or time. The entry’s writer may change it, and a project admin any entry; only while the project is in maintenance.

projectId
required
string format: uuid
entryId
required
string format: uuid

The entry’s id

Media typeapplication/json

The body of updateMaintenanceEntry: at least one field.

object
log_type

The kind.

string
Allowed values: routine_check repair replacement incident certification
title

The title, trimmed.

string
>= 1 characters <= 200 characters
description

The description; null clears it.

string | null
<= 4000 characters
occurred_at

When the work was done.

string format: date-time

The entry

Media typeapplication/json

A live maintenance entry.

object
id
required

The entry.

string format: uuid
project_id
required

The project.

string format: uuid
global_id
required

The element’s IFC GlobalId

string
log_type
required

New types may come

string
Allowed values: routine_check repair replacement incident certification
title
required

The title.

string
description
required

The description.

string | null
occurred_at
required

When the work was done

string
recorded_at
required

When the entry was written

string
entered_later
required

True when occurred_at is earlier than the time it was written

boolean
created_by
required

The user, integration or person who wrote it; null once that user is deleted

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_by_name
required

Their name, read when answering.

string | null
created_via
required
One of:

Null: in the app; agent: an AI assistant; integration or app: through this API

string
Allowed values: agent integration app
via_client_id
required

The integration’s or app’s client id when written through this API

string | null
changed_at
required

The row’s change time.

string
deleted
required
boolean

Example

{
"log_type": "routine_check",
"created_via": "agent",
"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 role the scopes give is below inspector, or an inspector changes another’s entry; FEATURE_OFF when the project’s organisation does not use the maintenance phase; PUBLIC_API_DISABLED

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, entry or element

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

PROJECT_NOT_IN_FM: entries are written only while the project is in maintenance

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