Message: ticket.reject
Back to IndexCloses a Ticket and marks it as rejected. It also updates its closedAt property.
Schema
Body
No fields
Response Type
string
Relevant Rule Hooks
This rule hook runs every time a ticket receives a reject message.
Example: Reject a Ticket
Reject a Ticket
Request
POST https://<hantera-hostname>/resources/actors/ticket/<TICKET ID>Authorization: Bearer <YOUR TOKEN>Content-Type: application/json
[{ "type": "reject"}]curl -i -X POST \ https://<hantera-hostname>/resources/actors/ticket/<TICKET ID> \ -H 'Authorization: Bearer <YOUR TOKEN>' \ -H 'Content-Type: application/json' \ -d '[{ "type": "reject"}]'Invoke-WebRequest `-Uri "https://<hantera-hostname>/resources/actors/ticket/<TICKET ID>" `-Method POST `-Headers @{Authorization="Bearer <YOUR TOKEN>"; 'Content-Type'="application/json"} `-Body '[{ "type": "reject"}]'Response
HTTP/1.1 200 OK---
{ "paths": [ "resources/actors/ticket/0199aa1f-b91a-73e4-815f-44e9cd8cc11f", "resources/actors/ticket/return/RE100014", "resources/actors/ticket/return/return3" ], "data": { "reject": "OK" }}