Skip to main content
POST
Open the ticket of an AI finding
Key: Write Scope: Company

Authorizations

Authorization
string
header
required

Use your Primo API key in the Authorization header as Bearer <API_KEY>.

Path Parameters

deviceId
string
required
findingKey
string
required

Response

201 - application/json
ticketId
string
required

Ticket id, to pass to getTicket or getAiToolsTicketDetails

ticketReference
string
required
deviceId
string
required
rule
string
required

The rule's code

findingKey
string
required

The finding the ticket tracks: each finding has its own ticket

openedBy
enum<string>
required

policy: opened by Create tickets automatically, closed by Primo when the finding is gone or the settings no longer cover it; admin (a person), agent (Primo AI) or api (an API key): opened by hand, closed by Primo once the finding is gone

Available options:
policy,
admin,
agent,
api
openedAt
string
required

ISO 8601

closedAt
string | null
required

When Primo closed it (ISO 8601); null while it is open

closeReason
string | null
required

Why Primo closed it: finding_resolved, device_gone, auto_tickets_off, device_excluded, rule_ignored, severity_ignored, ticket_completed or ticket_cancelled when someone finished the ticket, or ticket_deleted when the ticket was deleted