---
title: "set_webhook_state"
method: PATCH
path: "/v1/webhooks/{endpointId}"
---

# set_webhook_state

`PATCH /v1/webhooks/{endpointId}`

## Request

- Base URL: `https://app.agentlinkops.com`
- URL: `https://app.agentlinkops.com/v1/webhooks/{endpointId}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Remaining arguments go in a JSON object body.

## Path parameters

- `endpointId` string, required: endpoint ID from create/list.

## Headers

- `X-Workspace-ID` string

## Request body

- object
  - `state` 'active' | 'disabled', required: Resource state or saved-observation filter.

## Response `200`

Remaining arguments go in a JSON object body.

- object
  - `id` string, required: Resource identifier returned by the operation.
  - `state` 'active' | 'disabled', required: Saved lifecycle or evidence state, as enumerated for this record.

## 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)
