Give a register item a ticket
const url = 'https://api.adversarial.com/api/v1/integrations/example/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/configs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/tickets/1';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"epic":"example","existing_key":"example","project":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.adversarial.com/api/v1/integrations/example/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/configs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/tickets/1 \ --header 'Content-Type: application/json' \ --data '{ "epic": "example", "existing_key": "example", "project": "example" }'Opens a new provider ticket, or links an existing one when the request names its key.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”How a register item gets its ticket.
object
Optional Jira epic for a newly-created ticket.
Provider-side key of a ticket to link instead of opening a new one.
Provider-side project, Linear team key, or ServiceNow table.
Examplegenerated
{ "epic": "example", "existing_key": "example", "project": "example"}Responses
Section titled “Responses”The linked ticket
A generic preview of an external ticket for autocomplete and linked-ticket display. Works across all ticket integrations (Jira, ServiceNow, etc.).
object
false when the external system no longer returns this ticket (a
dangling link kept visible only so the user can unlink it); true for
live tickets. Synthesized unresolved previews set this to false.
Opaque external ticket ID.
Icon URL for the ticket type.
Human-readable ticket key (e.g. “PROJ-123”, “INC0012345”).
Short summary/title.
The source table the ticket lives in (e.g. “incident”); null when the
integration has no such concept.
URL to view the ticket in the external system.
Examplegenerated
{ "available": true, "id": "example", "image": "example", "key": "example", "summary": "example", "table": "example", "url": "example"}Register item or configuration not found
The ticket is already linked to the register item