Skip to content

Message: ticket.query

Back to Index

Queries the ticket from the graph.

Schema

Body
queryany value (optional)

The query to execute.

Response Type Array of object

keystring
valueany 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"
}]

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.

Back to Index