> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentlinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update admission rule

> Update a website admission rule at its expected revision.

`update_admission_rule`

Update a website admission rule at its expected revision. Reload on a revision conflict.

<Note>Available in the deployed MCP and HTTP bundle. Confirm access and inputs with your connected catalog. Workspace scopes and enabled providers still apply.</Note>

| Access            | Behavior                                                   |
| ----------------- | ---------------------------------------------------------- |
| `discovery:write` | Writes or admits work; can change or remove existing state |

This operation changes saved state. Review its inputs and retry behavior before calling.

## Example request

Connect through [MCP](/guides/connect-mcp), [CLI](/guides/connect-cli), or [HTTP](/guides/connect-http). Replace example identifiers with records from your workspace.

<CodeGroup>
  ```json MCP theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "update_admission_rule",
      "arguments": {
        "projectId": "project_example",
        "ruleId": "rule_example",
        "revision": 1,
        "enabled": false
      }
    }
  }
  ```

  ```bash CLI theme={null}
  agentlinkops call update_admission_rule --args '{"projectId":"project_example","ruleId":"rule_example","revision":1,"enabled":false}'
  ```

  ```bash HTTP theme={null}
  curl "$AGENTLINKOPS_API_URL/v1/commands/update_admission_rule" \
    -H "Authorization: Bearer $AGENTLINKOPS_API_KEY" \
    -H 'Content-Type: application/json' \
    --data '{"projectId":"project_example","ruleId":"rule_example","revision":1,"enabled":false}'
  ```
</CodeGroup>

## Returned result

Illustrative data validated against the documented response schema. IDs and dates are examples, not a live account capture. MCP returns this data in `structuredContent` and in a text content block; generic HTTP and CLI return the JSON result directly.

```json theme={null}
{
  "rule": {
    "id": "adm_example",
    "workspace_id": "workspace_example",
    "project_id": "project_example",
    "kind": "reject_domain",
    "value": "spam.example.org",
    "source": "manual",
    "enabled": true,
    "note": "Customer-selected rule",
    "revision": 2,
    "created_by": "user_example",
    "created_at": "2026-09-20T00:00:00.000Z",
    "updated_at": "2026-09-20T00:00:00.000Z"
  },
  "revision": 2,
  "created": false
}
```

## Input fields

Omit optional fields when you do not want to supply them. Null is accepted only where listed. Unknown input properties are rejected.

| Field       | Type    | Presence | Meaning and constraints                                                                               |
| ----------- | ------- | -------- | ----------------------------------------------------------------------------------------------------- |
| `projectId` | string  | Required | Identifier of the project returned by its create or list operation. minLength: 1; maxLength: 200      |
| `ruleId`    | string  | Required | Identifier of the rule returned by its create or list operation. minLength: 1; maxLength: 200         |
| `revision`  | integer | Required | Immutable set revision to read or compare. maximum: 9007199254740991; exclusiveMinimum: 0             |
| `value`     | string  | Optional | The value value; allowed values and bounds are specified in this schema. minLength: 1; maxLength: 300 |
| `enabled`   | boolean | Optional | The enabled value; allowed values and bounds are specified in this schema.                            |
| `note`      | string  | Optional | The note value; allowed values and bounds are specified in this schema. maxLength: 1000               |

### Validation and omitted values

Current policy applies before durable import or candidate work. Rejected rows retain their reason and original row identity.

Evaluation and retained-record reevaluation do not mutate records. Report pages do not apply whole-import domain caps; a changed policy requires restarting pagination. Historical receipts describe the original operation, not permission for new work.

## Output fields

Fields inside optional or nullable parents apply only when that parent exists. [Common schema conventions](/reference/schemas) explain evidence states, empty lists and extensions.

| Field               | Type    | Presence | Meaning and constraints                                                                                                          |
| ------------------- | ------- | -------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `rule`              | object  | Required | additional fields rejected                                                                                                       |
| `rule.id`           | string  | Required | Resource identifier returned by the operation. minLength: 1; maxLength: 200                                                      |
| `rule.workspace_id` | string  | Required | Workspace that owns this record. minLength: 1; maxLength: 200                                                                    |
| `rule.project_id`   | string  | Required | Project that owns this record. minLength: 1; maxLength: 200                                                                      |
| `rule.kind`         | string  | Required | values: "reject\_domain", "reject\_url\_pattern", "require\_pattern", "domain\_cap"                                              |
| `rule.value`        | string  | Required |                                                                                                                                  |
| `rule.source`       | string  | Required | must equal "manual"                                                                                                              |
| `rule.enabled`      | boolean | Required |                                                                                                                                  |
| `rule.note`         | string  | Required |                                                                                                                                  |
| `rule.revision`     | integer | Required | Optimistic concurrency revision; supply it as expectedRevision on the next write. maximum: 9007199254740991; exclusiveMinimum: 0 |
| `rule.created_by`   | string  | Required | minLength: 1; maxLength: 200                                                                                                     |
| `rule.created_at`   | string  | Required | UTC timestamp when the record was created.                                                                                       |
| `rule.updated_at`   | string  | Required | UTC timestamp of the last record update.                                                                                         |
| `revision`          | integer | Required | Optimistic concurrency revision; supply it as expectedRevision on the next write. minimum: 0; maximum: 9007199254740991          |
| `created`           | boolean | Required | True when this request created the record; false when an existing record was reused.                                             |

[Download input schema](/schemas/update_admission_rule.input.json) · [Download output schema](/schemas/update_admission_rule.output.json)

## Errors and retries

The command is annotated idempotent. Reuse an accepted idempotency key when the input provides one; changing the payload under a reused key can conflict.

See [error recovery](/reference/errors) for status, scope, cooldown, cursor and retry handling. Unknown observations are result data and do not establish loss.

## HTTP resource routes

This operation has no separate resource alias. Use its generic command route in a matching environment.

## Continue

[evaluate\_admission](/reference/commands/evaluate_admission) · [get\_admission\_decisions](/reference/commands/get_admission_decisions)

Follow the [related workflow](/guides/import-and-verify), inspect [capability status](/capability-status), or return to the [command index](/reference/index).
