Creating requests, incidents and problems
There are two endpoints for creating tickets with an API key. Which one you use depends on the type of ticket you want to create.
POST /api/v1/requests creates general requests only. Sending "request_type": "INCIDENT", "SERVICE_REQUEST" or "PROBLEM" to it returns 400 Bad Request with a message such as Could not resolve type id 'INCIDENT' as a subtype of CreateGeneralRequestDto. Use POST /api/v1/requests/create for every other ticket type.
POST /api/v1/requests/create
Creates a ticket of any type. The request_type field in the body selects the ticket type and decides which additional fields are accepted (for example impact and urgency on incidents).
Create an incident
Create a problem
Create a service request
Response
A successful call returns 200 OK (not 201 Created) with the created ticket, including its display_id (for example IOINC-169) and the resolved request_type.
Field reference
POST /api/v1/requests
Creates a general request. It accepts the same body as above, but request_type must be REQUEST or omitted. Prefer POST /api/v1/requests/create for new integrations so the same code path can create every ticket type.
POST /api/v1/incidents is not available with API-key authentication and returns 400 with "URL Not Allowed". Use POST /api/v1/requests/create with "request_type": "INCIDENT" instead.
