{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-catalyst-center/json-schema/cisco-catalyst-center-assurance-tasks-schema.json",
  "title": "AssuranceTasks",
  "description": "List of assurance tasks",
  "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/AssuranceTasks",
  "type": "object",
  "properties": {
    "response": {
      "type": "array",
      "description": "Successfully returned list of tasks\n",
      "items": {
        "$ref": "#/$defs/AssuranceTask"
      }
    },
    "page": {
      "$ref": "#/$defs/PaginationResponse"
    },
    "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"
        }
      }
    },
    "PaginationResponse": {
      "type": "object",
      "properties": {
        "limit": {
          "type": "integer",
          "description": "The reference to the limit applied in the Pagination   Request."
        },
        "offset": {
          "type": "integer",
          "description": "The reference to the record offset applied in the   Pagination Request."
        },
        "count": {
          "type": "integer",
          "description": "Total number of records related to the resource after   applying applicable filtering"
        },
        "sortBy": {
          "type": "array",
          "description": "Reference to the sortBy that was applied in the Pagination   Request.",
          "items": {
            "$ref": "#/$defs/PaginationResponse_sortBy"
          }
        }
      }
    },
    "PaginationResponse_sortBy": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Field name by which sort is requested"
        },
        "order": {
          "type": "string",
          "description": "Sort order. 'asc' for ascending and 'desc' for   descending",
          "enum": [
            "asc",
            "desc"
          ]
        }
      },
      "description": "List of field names and corresponding order used to sort   the records."
    }
  }
}