Skip to content
Suomi

Change a finding's fields or status

PATCH
/v1/projects/{projectId}/findings/{guid}
Code sample: Shell / cURL
curl --request PATCH \
--url https://api.whatsbuilt.fi/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/findings/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "title": "example", "description": "example", "topic_type": "example", "topic_status": "example", "priority": "example", "assigned_to": "example", "labels": [ "example" ], "stage": "example", "due_date": "example" }'

Only the fields sent change; closing is topic_status: Closed. A repeat with the same body changes nothing more.

projectId
required
string format: uuid
guid
required
string format: uuid

The finding’s guid

Media typeapplication/json
object
title
string
>= 1 characters <= 500 characters
description
string | null
<= 20000 characters
topic_type
string | null
<= 255 characters
topic_status

For example Open, Closed or Resolved

string
<= 255 characters
priority
string | null
<= 255 characters
assigned_to
string | null
<= 255 characters
labels
Array<string>
<= 100 items
stage
string | null
<= 255 characters
due_date
string | null
<= 64 characters

Example generated

{
"title": "example",
"description": "example",
"topic_type": "example",
"topic_status": "example",
"priority": "example",
"assigned_to": "example",
"labels": [
"example"
],
"stage": "example",
"due_date": "example"
}

The finding

Media typeapplication/json

A live topic.

object
guid
required

The topic.

string format: uuid
project_id
required

The project.

string format: uuid
server_assigned_id
required

Its number.

string | null
title
required

Its title.

string
topic_type
required

Its BCF type.

string | null
topic_status
required

Its BCF status.

string | null
priority
required

Its priority.

string | null
assigned_to
required

Who it is assigned to.

string | null
labels
required

Its labels.

Array<string> | null
description
required

Its description.

string | null
stage
required

Its stage.

string | null
creation_author
required

Who created it.

string
creation_date
required

When it was created.

string
modified_author
required

Who changed it last.

string | null
modified_date
required

When it was changed last.

string
due_date
required

When it is due.

string | null
closed_at
required

When it was closed.

string | null
created_via
required

How it was created.

string | null
via_client_id
required

The client that created it.

string | null
entered_later
required

True when recorded after the fact.

boolean
recorded_at
required

When it was recorded.

string | null
is_finding
required

True for a finding.

boolean
elements
required

The GlobalIds of its first viewpoint.

Array<string>
changed_at
required

The row’s change time.

string
deleted
required
boolean

Example

{
"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 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, finding, comment, viewpoint, draft 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"
}

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