Respond to an entity hook
PATCH/entity_hook/:id
Responds to an entity hook. Send this request to the callback_url from the hook notification once your logic has run.
The status you send decides how nullplatform resumes the entity operation. Add callback_body to hand fields back to the entity: they are merged into the update nullplatform sends when it resumes, so a before-hook on application:create can, for example, decide the repository the application is created in.
ℹ️ Note: Only pending hooks can be updated. Fields nullplatform sets itself, such as the entity
status, take precedence overcallback_body.
Request
Responses
- 204
- 4XX
- 5XX
The hook was updated and the callback for the given status was executed.
The request couldn't be processed. For example, a parameter is invalid, the resource doesn't exist, or you don't have permission. The body is a problem details object (RFC 9457).
Something went wrong on nullplatform's side. The body is a problem details object (RFC 9457).