Register (or replace) a hook at runtime, live immediately
Changed onpost/api/v1/admin/hooks
Request
- The document declares no server URL.
- Auth: one of:
- API key in header x-admin-token
- HTTP bearer
Headers
If-Matchstring
Optimistic concurrency: the resource's ETag from a prior read (or the ETag returned by the previous mutation). Stale = 409 version_conflict (re-read and retry), nothing changes; absent or * = unconditional.
Request body
Response
Replaced: the name existed (same-grant re-register; body is the hook definition)
Changes
- breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking
- breaking
added required request body
- info
api operation id
PostHookswas added - info
added the non-success response with the status
- breaking