{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contraforce/json-schema/contraforce-link-service-ticket-request-schema.json",
  "title": "LinkServiceTicketRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/contraforce-service-tickets-api-openapi.yml#/components/schemas/LinkServiceTicketRequest",
  "type": "object",
  "properties": {
    "ticketId": {
      "type": [
        "null",
        "string"
      ],
      "description": "Record id of the ticket in the connected ticketing system: the ServiceNow `sys_id`, the Jira issue id or key, or the numeric Autotask ticket id. Ticket numbers such as `INC0049162` are not accepted; resolve them with `GET tickets/search?ticketNumber=` and send the returned `id`."
    },
    "incident": {
      "$ref": "#/$defs/IncidentReference"
    }
  },
  "$defs": {
    "IncidentReference": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "null",
            "string"
          ]
        },
        "source": {
          "$ref": "#/$defs/IncidentSource"
        },
        "workspaceId": {
          "type": [
            "null",
            "string"
          ]
        },
        "number": {
          "type": [
            "null",
            "string"
          ]
        }
      }
    },
    "IncidentSource": {
      "enum": [
        "Sentinel",
        "DefenderXDR",
        "QRadar",
        "Splunk",
        "CrowdStrike",
        "SentinelOne",
        "SumoLogic"
      ]
    }
  }
}