# Evaluator routes: update, delete

URL: /code/api/evaluator/records-update · Id: `page:code/api/evaluator/records-update`

> The Evaluator Verbs update, delete as api.sb routes, with inputs, result, refusals and an example.

Reference for [Evaluator](/business/nouns/evaluator), one group of [Evaluator routes](/code/api/evaluator).

### Evaluator.update
Changes the given properties of an Evaluator. [Verb page](/business/nouns/evaluator/update?interface=api).

```text
PATCH /{namespace}/evaluators/{id}
```

Path: `id`. Body, as JSON: the other inputs. Emits `Evaluator.updated`.

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Evaluator. |
| `kind` | `string` | No | One of `code`, `generative`, `agentic`, or `human`. |
| `cascade` | `string[]` | No | Kinds tried in order when one declines, such as code, then a Human. |
| `instructions` | `text` | No | For a generative or agentic Function, what it does and how. |
| `model` | `string` | No | For a generative or agentic Function, the model it runs on. |
| `tools` | list of [Verb](/business/nouns/verb) | No | For an agentic Function, the Verbs it may call; Permissions and Limits apply to each. |
| `maxSteps` | `integer` | No | For an agentic Function, the most steps one Action may take. |
| `budget` | `money` | No | The most one Action may spend; the Mandate’s Limits apply as well. |
| `role` | [Role](/business/nouns/role) | No | For a human Function, the Role its Tasks go to. |
| `form` | `json` | No | For a human Function, the form; generated from the Verb’s inputs and outputs when absent. |
| `sla` | `string` | No | For a human Function, how long a Task may wait, as an ISO 8601 duration. |
| `escalateTo` | [Role](/business/nouns/role) | No | For a human Function, the Role a Task moves to when the service level passes. |
| `rubric` | `text` | No | What it grades against. An agent never varies its own Evaluators. Never randomized. |
| `integration` | [Integration](/business/nouns/integration) | No | The Integration whose outside run returns the verdict, such as a CI job; empty when the platform runs it. |
| `required` | `boolean` | No | True when `Change.merge` refuses until this Evaluator passes on the Change’s head. Never randomized. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `evaluator` | [Evaluator](/business/nouns/evaluator) | Yes | The Evaluator. |

**Refuses when**

| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |

**Example**

```bash
curl -X PATCH https://api.sb/clausecheck.ai/evaluators/evaluator_cYmeRK4Drs \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"integration":"integration_lnFrC1nUGY"}'
```

```json
{
  "api": "https://api.sb/clausecheck.ai",
  "evaluator": {
    "$id": "https://api.sb/clausecheck.ai/evaluators/evaluator_cYmeRK4Drs",
    "$type": "Evaluator",
    "kind": "code",
    "rubric": "Example rubric",
    "integration": "integration_lnFrC1nUGY"
  },
  "action": {
    "$id": "https://api.sb/clausecheck.ai/actions/act_Yh9ONkSexq",
    "operation": "Evaluator.update",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/clausecheck.ai/actions/act_Yh9ONkSexq"
  }
}
```

### Evaluator.delete
Deletes an Evaluator: a soft delete that keeps its history, undone by `Thing.restore`. [Verb page](/business/nouns/evaluator/delete?interface=api).

```text
DELETE /{namespace}/evaluators/{id}
```

Path: `id`. Emits `Evaluator.deleted`.

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Evaluator. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `evaluator` | [Evaluator](/business/nouns/evaluator) | Yes | The Evaluator. |

**Refuses when**

| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |

**Example**

```bash
curl -X DELETE https://api.sb/clausecheck.ai/evaluators/evaluator_cYmeRK4Drs \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"
```

```json
{
  "api": "https://api.sb/clausecheck.ai",
  "evaluator": {
    "$id": "https://api.sb/clausecheck.ai/evaluators/evaluator_cYmeRK4Drs",
    "$type": "Evaluator",
    "kind": "code",
    "rubric": "Example rubric"
  },
  "action": {
    "$id": "https://api.sb/clausecheck.ai/actions/act_Yh9ONkSexq",
    "operation": "Evaluator.delete",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/clausecheck.ai/actions/act_Yh9ONkSexq"
  }
}
```