Update a webhook
Change a webhook’s HTTPS address or its secret. Send both fields together, because a missing secret is erased.
Rules
endpoint_urlis required on every call, and must be a valid URL starting with lowercasehttps://.- Send
secret_hashevery time. To rotate a secret, send the new one here and then switch your receiver over. - The event cannot be changed. To listen for a different event, register a second webhook.
- Keep the trailing slash on the path. Without it the API redirects, and most HTTP clients drop the request body when they follow a redirect.
- The body is checked before the webhook is looked up, so an invalid body returns
400even for an ID that does not exist. - The call returns
404withWebhook not foundwhen no webhook exists with this ID.
exam_evaluation_student_answer_sheet_evaluation is retried, once after 5 seconds, when your endpoint does not answer 200 or 201, so that is the one event whose delivery can arrive twice.endpoint_url at an address you control and ignore them, or contact CrazyGoldFish to have the webhook disabled.
Next step
Handle deliveries
secret_hash and answer within 5 seconds.Authorizations
Access token from Get an access token.
Path Parameters
Unique ID of the webhook, from Register a webhook or List your webhooks.
Body
New address for this webhook. Required on every call, even when you only want to change the secret.
"https://example.com/hooks/v2/crazygoldfish"
The secret to store. Leaving it out erases the stored secret instead of keeping it, so send it every time.
"a-long-random-string-you-generate"
Response
The updated webhook.
A registered webhook. The secret is never returned by these endpoints.
Unique ID of the webhook. Use it in Get a webhook and Update a webhook.
"c5a71f30-6b82-4d19-9e4a-8f0d3b6c2157"
The event this webhook listens for, expanded. It cannot be changed after registration.
The HTTPS address CrazyGoldFish posts the event to.
"https://example.com/webhooks/crazygoldfish"