Message: ticket.query
Back to IndexQueries the ticket from the graph.
Schema
Body
query | any value (optional) The query to execute. |
Response Type
Array of object
key | string |
value | any value |
Example: Query a Ticket
Query a Ticket
First, send the following POST Message request.
Request
POST https://<hantera-hostname>/resources/actors/ticket/<TICKET ID>Authorization: Bearer <YOUR TOKEN>Content-Type: application/json
[{ "type": "query"}]curl -i -X POST \ https://<hantera-hostname>/resources/actors/ticket/<TICKET ID> \ -H 'Authorization: Bearer <YOUR TOKEN>' \ -H 'Content-Type: application/json' \ -d '[{ "type": "query"}]'Invoke-WebRequest `-Uri "https://<hantera-hostname>/resources/actors/ticket/<TICKET ID>" `-Method POST `-Headers @{Authorization="Bearer <YOUR TOKEN>"; 'Content-Type'="application/json"} `-Body '[{ "type": "query"}]'Response
HTTP/1.1 200 OK---
{ "paths": [ "resources/actors/asset/<TICKET ID>", "resources/actors/asset/return/<TICKET NUMBER>", "resources/actors/asset/return/<EXTERNAL REFERENCE>" ], "data": { "query": {} }}Using an incorrect or non-existent <TICKET ID> returns a NOT_FOUND error.