{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contraforce/json-schema/contraforce-service-ticket-update-priority-request-schema.json",
  "title": "ServiceTicketUpdatePriorityRequest",
  "description": "This DTO is a wrapper for priority (urgency for Snow) update calls.",
  "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/ServiceTicketUpdatePriorityRequest",
  "type": "object",
  "properties": {
    "autotaskRequest": {
      "$ref": "#/$defs/AutotaskTicketPriorityUpdateRequest"
    },
    "serviceNowRequest": {
      "$ref": "#/$defs/ServiceNowTicketUrgencyUpdateRequest"
    },
    "jiraRequest": {
      "$ref": "#/$defs/JiraTicketPriorityUpdateRequest"
    },
    "resourceId": {
      "type": [
        "null",
        "string"
      ],
      "description": "Gets or sets the unique identifier of the associated resource. Used to identify the target resource like Incident IDs."
    },
    "resourceType": {
      "description": "Gets or sets the type of the resource represented by this instance.",
      "$ref": "#/$defs/AuditedResourceType"
    },
    "resourceName": {
      "type": [
        "null",
        "string"
      ],
      "description": "An optional human-readable name of the resource."
    }
  },
  "$defs": {
    "AuditedResourceType": {
      "enum": [
        "None",
        "Incident",
        "Account"
      ],
      "description": "Specifies the types of resources that can be audited within the system."
    },
    "AutotaskTicketPriority": {
      "enum": [
        "High",
        "Medium",
        "Low",
        "Critical"
      ]
    },
    "AutotaskTicketPriorityUpdateRequest": {
      "type": "object",
      "properties": {
        "id": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "integer",
            "string"
          ],
          "format": "int32"
        },
        "priority": {
          "$ref": "#/$defs/AutotaskTicketPriority"
        }
      }
    },
    "JiraTicketPriorityUpdateRequest": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "null",
            "string"
          ]
        },
        "priorityId": {
          "type": [
            "null",
            "string"
          ]
        },
        "priorityName": {
          "type": [
            "null",
            "string"
          ]
        }
      }
    },
    "ServiceNowTicketUrgency": {
      "enum": [
        "High",
        "Medium",
        "Low"
      ]
    },
    "ServiceNowTicketUrgencyUpdateRequest": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "null",
            "string"
          ]
        },
        "urgency": {
          "$ref": "#/$defs/ServiceNowTicketUrgency"
        }
      }
    }
  }
}