---
title: "Update an admission endpoint"
method: PATCH
path: "/api/hook-endpoints/{id}"
tags: ["HookEndpoints"]
---

# Update an admission endpoint

`PATCH /api/hook-endpoints/{id}`

## Request

- Base URL: `http://localhost:38200`
- URL: `http://localhost:38200/api/hook-endpoints/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `token`

## Request body

- HookEndpointPatch
  - `name` string
  - `url` string, uri
  - `enabled` boolean
  - `priority` integer
  - `ops` string[]
  - `timeoutMs` integer
  - `failMode` 'open' | 'closed'
  - `bulkFailMode` 'open' | 'closed'

## Response `200`

Updated endpoint.

- HookEndpoint
  - `name` string, required
  - `url` string, uri, required: https only, no credentials
  - `enabled` boolean
  - `priority` integer
  - `ops` string[]
  - `timeoutMs` integer
  - `failMode` 'closed' | 'open': What a failed call means on a single write.
  - `bulkFailMode` 'open' | 'closed': What a failed call means on a bulk write.
  - `id` integer
  - `contentGrant` 'text' | 'attributes', nullable
  - `createdAt` string, date-time
  - `updatedAt` string, date-time

## Other responses

- `400`: Request body/query failed Zod validation.
- `401`: Missing or invalid credentials.
- `403`: Admin or owner role (or an API key with admin scope) required, or the plan lacks the webhooks feature.
- `404`: Resource not found (or not visible to the caller).

---

[API](https://skmtc.dev/contextq/apis/contextq-api.md) · [All operations](https://skmtc.dev/contextq/apis/contextq-api/llms.txt) · [OpenAPI document](https://skmtc.dev/contextq/apis/contextq-api/revisions/7afc44056a22?raw)
