Skip to main content
POST
Add an AI ticket link

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Path Parameters

ticket_id
string<uuid>
required

Body

application/json
target_kind
string
required
target_id
string
required

For target_kind 'ticket', the ticket's id or its number (T-42 or 42); it is stored as the ticket's id.

relation
string | null

spawned, evidence, fix, duplicate_of, relates_to (the default) or recurrence_of. recurrence_of links a ticket to an earlier ticket of the same recurring signal and needs target_kind 'ticket'.

Response

The link already existed; nothing was written

id
string<uuid>
required
ticket_id
string<uuid>
required
target_kind
string
required
target_id
string
required
relation
string
required
created_at
string<date-time>
required
direction
enum<string>
required

'outgoing' when the ticket being read holds the link, 'incoming' when another ticket holds it with the ticket being read as its target.

Available options:
outgoing,
incoming
linked_ticket
AiTicketLinkedTicket · object | null
required

The ticket at the other end of a ticket link: the target of an outgoing link, the holder of an incoming one. Null for any other target kind, and for a ticket target that is not a ticket of this organisation.