Approve a webhook endpoint
POST
/api/v1/hooks/{id}/approve
const url = 'https://deck.example.com/api/v1/hooks/example/approve';const options = {method: 'POST', headers: {cookie: 'qd_auth=<qd_auth>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://deck.example.com/api/v1/hooks/example/approve \ --cookie qd_auth=<qd_auth>Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”One endpoint, as Settings and hooks list show it. The secret is never shown again after creation.
Media typeapplication/json
One endpoint, as Settings and hooks list show it. The secret is never shown again after creation.
object
approved_at
None until the person approves it: until then it receives nothing (404).
string | null
created_at
required
string
event_count
required
integer format: int64
id
required
string
kind
required
label
required
string
last_event_at
string | null
last_failure
proposed_by
Who proposed it (<tab>@<node>), when an agent did.
string | null
to
required
<tab>@<node>.
string
Example
{ "kind": "generic", "last_failure": null}default
Section titled “default”An error, with its message.
Media typeapplication/json
Every error the REST API returns, with an HTTP status.
object
error
required
string
Example generated
{ "error": "example"}