{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-catalyst-center/json-schema/cisco-catalyst-center-assurance-task-info-schema.json",
  "title": "AssuranceTaskInfo",
  "description": "Assurance Task Info",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-catalyst-center-assurancetasks-api-openapi.yml#/components/schemas/AssuranceTaskInfo",
  "type": "object",
  "properties": {
    "response": {
      "$ref": "#/$defs/AssuranceTask"
    },
    "version": {
      "type": "string"
    }
  },
  "$defs": {
    "AssuranceTask": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "uuid of the submitted task/operation",
          "format": "uuid"
        },
        "status": {
          "type": "string",
          "description": "the state of the submitted task/operation",
          "enum": [
            "PENDING",
            "FAILURE",
            "SUCCESS"
          ]
        },
        "startTime": {
          "type": "integer",
          "description": "the time the submitted task/operation started",
          "format": "int64"
        },
        "endTime": {
          "type": "integer",
          "description": "the time the submitted task/operation completed or failed\n\ntasks have a timeout window of 5 minutes\n",
          "format": "int64"
        },
        "updateTime": {
          "type": "integer",
          "description": "the time the submitted task/operation was last updated",
          "format": "int64"
        },
        "progress": {
          "type": "string",
          "description": "optional string indicating progress made on task/operation"
        },
        "failureReason": {
          "type": "string",
          "description": "information on why the task failed"
        },
        "errorCode": {
          "type": "string",
          "description": "optional string that could be used to expose relevant error codes related to failures"
        },
        "requestType": {
          "type": "string",
          "description": "optional string that can be used to provide information on the task's purpose"
        },
        "data": {
          "type": "object",
          "description": "optional information indicating what data this operation is pertaining to.\n\ngenerally will be a JSON (API request body)\n\nbut can also be a string depending on use case.\n"
        },
        "resultUrl": {
          "type": "string",
          "description": "in a success scenario, this will be the URL needed to retrieve the response data pertaining to the original request made"
        }
      }
    }
  }
}