Hook
Test hook
Test a hook with custom payload. Test endpoint will return result generated by the specified Hook which would be normally processed by Rossum.
post/api/v1/hooks/{hookID}/test
Path parameters
hookIDinteger required
A unique integer value identifying this hook.
Request body
Example request
{
"config": {
"insecure_ssl": true,
"code": "exports.rossum_hook_request_handler = ..."
},
"payload": {
"action": "started",
"event": "annotation_content",
"annotation": {},
"document": {},
"settings": {}
}
}Response
OK
Example response
{
"response": {
"messages": [],
"operations": []
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.