# Override a finding's triage verdict

PATCH

/projects/{projectId}/findings/{findingId}/triage

```js
const url = 'https://zkao.io/api/v1/projects/example/findings/example/triage';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"triageStatus":"CONFIRMED","note":"example"}'
};


try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```sh
curl --request PATCH \
  --url https://zkao.io/api/v1/projects/example/findings/example/triage \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{ "triageStatus": "CONFIRMED", "note": "example" }'
```

* Production`zkao.io/api/v1/projects/{projectId}/findings/{findingId}/triage`
* Staging`staging.zkao.io/api/v1/projects/{projectId}/findings/{findingId}/triage`

Requires scope: `findings:write`.

Replaces the AI triage verdict with `CONFIRMED` or `FALSE_POSITIVE`. The override keeps the first AI verdict it replaced. Setting that verdict again clears the override. A `note` is added to the finding as a comment from the member who created the token.

## Authorizations

* **[bearerAuth](https://docs.staging.zkao.io/api/#bearerauth)**

## Parameters

### Path Parameters

* **projectId**

  required

  string

* **findingId**

  required

  string

  The finding id, or the `ZK-` label shown on the finding page (the id’s last eight characters, prefix optional). A label that matches more than one finding in the project is refused with `409 conflict`; use the full id.

## Request Bodyrequired

application/json

object

* **triageStatus**

  required

  string

  Allowed values: CONFIRMED FALSE_POSITIVE

* **note**

  string

  \>= 1 characters

## Responses

### 200

OK

application/json

object

* **findingId**

  required

  string

* **triageStatus**

  required

  string

  Allowed values: PENDING NEW DUPLICATE RECURRING CONFIRMED FALSE_POSITIVE INCONCLUSIVE

* **previousTriageStatus**

  required

  string

  Allowed values: PENDING NEW DUPLICATE RECURRING CONFIRMED FALSE_POSITIVE INCONCLUSIVE

* **noteId**

  required

  The comment the override added, or null without a note.

  string | null

##### Example

```json
{
  "triageStatus": "PENDING",
  "previousTriageStatus": "PENDING"
}
```

### 400

Invalid request

application/json

object

* **error**

  required

  object

  * **code**

    required

    string

    Allowed values: unauthorized forbidden not_found bad_request conflict insufficient_credits budget_below_minimum repository_initializing diff_base_required diff_base_not_allowed diff_base_invalid diff_empty rate_limited internal

  * **message**

    required

    string

  * **minimumCredits**

    Budget_below_minimum only: the least the launch could have reserved, in credits. A diff scan’s first scan of a repository also builds its overview, so its minimum is higher.

    integer

##### Example

```json
{
  "error": {
    "code": "unauthorized"
  }
}
```

### 401

Missing, malformed, expired, or revoked token

application/json

object

* **error**

  required

  object

  * **code**

    required

    string

    Allowed values: unauthorized forbidden not_found bad_request conflict insufficient_credits budget_below_minimum repository_initializing diff_base_required diff_base_not_allowed diff_base_invalid diff_empty rate_limited internal

  * **message**

    required

    string

  * **minimumCredits**

    Budget_below_minimum only: the least the launch could have reserved, in credits. A diff scan’s first scan of a repository also builds its overview, so its minimum is higher.

    integer

##### Example

```json
{
  "error": {
    "code": "unauthorized"
  }
}
```

### 403

The token lacks the required scope

application/json

object

* **error**

  required

  object

  * **code**

    required

    string

    Allowed values: unauthorized forbidden not_found bad_request conflict insufficient_credits budget_below_minimum repository_initializing diff_base_required diff_base_not_allowed diff_base_invalid diff_empty rate_limited internal

  * **message**

    required

    string

  * **minimumCredits**

    Budget_below_minimum only: the least the launch could have reserved, in credits. A diff scan’s first scan of a repository also builds its overview, so its minimum is higher.

    integer

##### Example

```json
{
  "error": {
    "code": "unauthorized"
  }
}
```

### 404

Resource not in this token’s project or repo allowlist

application/json

object

* **error**

  required

  object

  * **code**

    required

    string

    Allowed values: unauthorized forbidden not_found bad_request conflict insufficient_credits budget_below_minimum repository_initializing diff_base_required diff_base_not_allowed diff_base_invalid diff_empty rate_limited internal

  * **message**

    required

    string

  * **minimumCredits**

    Budget_below_minimum only: the least the launch could have reserved, in credits. A diff scan’s first scan of a repository also builds its overview, so its minimum is higher.

    integer

##### Example

```json
{
  "error": {
    "code": "unauthorized"
  }
}
```
