Respond to an entity hook
Changed onResponds 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 over callback_body.
Request
- Base URLhttps://api.nullplatform.com
- URLhttps://api.nullplatform.com/entity_hook/{id}
- AuthHTTP bearer
Path parameters
The ID of the entity hook request, as received in the hook notification.
Request body
Example request
{
"status": "success",
"messages": [
{
"level": "info",
"message": "Repository provisioned",
"timestamp": 1740406453123
}
],
"callback_body": {
"repository_url": "https://github.com/my-org/my-service",
"tags": {
"provisioned_by": "platform-hook"
}
}
}Response
The hook was updated and the callback for the given status was executed.
Changes
- breaking
the response property
became optional for the status - breaking
the response property
became optional for the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - info
media type
application/jsonwas changed to a more specific media typeapplication/problem+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/problem+jsonfor the response status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
response property
messagedeprecated - info
response property
messagedeprecated - info
added the required property
to 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 - info
added the required property
to 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
- info
endpoint added
- info