Skip to content
Suomi

Create finding drafts

An integration, such as a factory’s quality system or a moisture-sensor service, can propose a finding as a finding draft. A draft is not a finding yet: it is not on the findings list, in the BCF API, in counts or in exports. A project inspector or administrator sees the drafts in the app under Findings › Drafts and

  • publishes a draft as a finding (Publish). The person who publishes it becomes the finding’s author. The finding selects the draft’s elements, and a draft with a point shows on the storey’s floor plan as a pin. The finding’s first comment is Integration · {name} with the draft’s reference.
  • rejects a draft (Reject). A rejected draft never becomes a finding.
  • The permission Creates finding drafts (finding-drafts:write). It gives the integration the viewer role on its projects. An administrator adds it on Integrations; see Create an integration.
  • An access token whose scopes include finding-drafts:write.
Terminal window
curl -X POST "https://api.whatsbuilt.fi/v1/projects/$PROJECT/finding-drafts" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: QC-2026-1183" \
-d '{"title":"Crack at the slab edge","description":"Hairline crack at the end, about 30 cm.","priority":"Major","element_global_ids":["2qL7xVb0P1hO3kQm9aZ002"],"source_ref":"QC-2026-1183"}'
Field What it is
title Required, 1–500 characters
description Up to 20 000 characters
priority One of the project’s own values; GET …/finding-values lists them
labels Up to 100 labels
element_global_ids Up to 100 elements of the project. Each must be in the project’s models
storey_global_id, point A storey and an optional point on it (x, y, z in metres, in the model’s coordinates), when no element fits, or to mark the spot among the elements. point needs the storey, and each coordinate must be greater than −10 000 000 m and less than 10 000 000 m. WhatsBuilt does not check the storey’s GlobalId against the model; GET …/storeys lists the project’s storeys
photo_keys Up to 10 photos. Get an address for each with POST /v1/projects/{projectId}/finding-drafts/photos and upload the photo there as for a finding’s photo. The photos become the published finding’s photos
source_ref Your own id, up to 128 characters. The inspector sees it on the draft and in the finding’s first comment

A new draft answers 201 with the draft in status pending. An integration with findings:write can also publish or reject drafts itself.

Send an Idempotency-Key header with every draft, such as your system’s id for the deviation. A repeat with the same key and body returns the first draft with 200 and creates nothing. Keys are per integration and project, and do not expire. The same key with another body answers 422 IDEMPOTENCY_KEY_REUSED.

A project holds at most 500 pending drafts. Above that a new draft answers 409 DRAFT_LIMIT until the inspectors have handled some. The limit protects the inspectors’ list.

GET /v1/finding-drafts (Reads data, or findings:read) lists drafts in a window like the other lists; see Collect changes in a window. An integration sees the drafts it created; one that has the inspector role, because it also records element events or findings, sees every draft of the project. status is

  • pending: waiting for an inspector,
  • published: published; topic_guid is the finding’s id in GET /v1/findings,
  • rejected: rejected.

status=pending narrows the list to the drafts not yet handled.

The error codes are on Errors and limits and the fields in the API reference.