---
title: "Update admission rule"
method: POST
path: "/v1/commands/update_admission_rule"
tags: ["Imports and discovery"]
---

# Update admission rule

`POST /v1/commands/update_admission_rule`

## Request

- Base URL: `https://app.agentlinkops.com`
- URL: `https://app.agentlinkops.com/v1/commands/update_admission_rule`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Shared command transport. All logical arguments in JSON; no query or Idempotency-Key header. See canonical operation reference.

## Headers

- `X-Workspace-ID` string

## Request body

- UpdateAdmissionRuleInput
  - `projectId` string, required: project ID from create/list.
  - `ruleId` string, required: rule ID from create/list.
  - `revision` integer, required: Immutable set revision to read/compare.
  - `value` string: value; see schema.
  - `enabled` boolean: enabled; see schema.
  - `note` string: note; see schema.

## Response `200`

Command result, including queued admission.

- UpdateAdmissionRuleOutput
  - `rule` object, required
    - `id` string, required: Resource identifier returned by the operation.
    - `workspace_id` string, required: Workspace that owns this record.
    - `project_id` string, required: Project that owns this record.
    - `kind` 'reject_domain' | 'reject_url_pattern' | 'require_pattern' | 'domain_cap', required
    - `value` string, required
    - `source` 'manual', required
    - `enabled` boolean, required
    - `note` string, required
    - `revision` integer, required: Optimistic concurrency revision; supply it as expectedRevision on the next write.
    - `created_by` string, required
    - `created_at` string, required: UTC timestamp when the record was created.
    - `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.
  - `created` boolean, required: True when this request created the record; false when an existing record was reused.

## Other responses

- `429`: Request-rate or usage refusal. Inspect error.code and recovery details before retrying.
- `default`: Error envelope. Non-configuration 5xx messages are masked and details omitted; allowlisted configuration errors retain static operator recovery.

---

[API](https://skmtc.dev/agentlinkops/apis/agentlinkops-http-api.md) · [All operations](https://skmtc.dev/agentlinkops/apis/agentlinkops-http-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentlinkops/apis/agentlinkops-http-api/revisions/2a712a1dcfa7?raw)
