{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/autodesk/json-schema/autodesk-root-cause-categories-page-schema.json",
  "title": "root-cause-categories-page",
  "description": "The pagination object.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/autodesk-aps-construction-issues-openapi.yml#/components/schemas/root_cause_categories_page",
  "type": "object",
  "x-stoplight": {
    "id": "ltnxakw21gumz"
  },
  "properties": {
    "pagination": {
      "$ref": "#/$defs/Pagination"
    },
    "results": {
      "type": "array",
      "description": "A list of issue root cause categories.",
      "items": {
        "$ref": "#/$defs/root_cause_category"
      }
    }
  },
  "$defs": {
    "Pagination": {
      "type": "object",
      "description": "The pagination object.",
      "properties": {
        "limit": {
          "type": "integer",
          "description": "The number of items per page."
        },
        "offset": {
          "type": "integer",
          "description": "The page number that the results begin from."
        },
        "totalResults": {
          "type": "integer",
          "description": "The number of items in the response."
        }
      }
    },
    "root_cause_category": {
      "title": "root_cause_category",
      "x-stoplight": {
        "id": "xu7dv1hyc4jzi"
      },
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of the issue root cause category."
        },
        "title": {
          "type": "string",
          "description": "The title of the custom attribute.\nMax length: 100"
        },
        "isActive": {
          "type": "boolean",
          "description": "The description of the custom attribute.\nMax length: 500"
        },
        "permittedActions": {
          "type": "array",
          "description": "Not relevant",
          "items": {
            "type": "string"
          }
        },
        "permittedAttributes": {
          "type": "array",
          "description": "Not relevant",
          "items": {
            "type": "string"
          }
        },
        "rootCauses": {
          "type": "array",
          "description": "The metadata object; only relevant for list custom attributes.",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The ID of the issue root cause."
              },
              "rootCauseCategoryId": {
                "type": "string",
                "description": "The ID of the parent issue root cause category."
              },
              "title": {
                "type": "string",
                "description": "The title of the issue root cause.\nMax length: 100"
              },
              "isActive": {
                "type": "boolean",
                "description": "The description of the custom attribute.\nMax length: 500"
              },
              "permittedActions": {
                "type": "array",
                "description": "Not relevant",
                "items": {
                  "type": "string"
                }
              },
              "permittedAttributes": {
                "type": "array",
                "description": "Not relevant",
                "items": {
                  "type": "string"
                }
              },
              "deletedAt": {
                "type": "string",
                "description": "The date and time the custom attribute was deleted, in the following format: YYYY-MM-DDThh:mm:ss.sz."
              },
              "deletedBy": {
                "type": "string",
                "description": "The Autodesk ID of the user who deleted the custom attribute."
              }
            }
          }
        },
        "createdAt": {
          "type": "string",
          "description": "The date and time the custom attribute was created, in the following format: YYYY-MM-DDThh:mm:ss.sz."
        },
        "createdBy": {
          "type": "string",
          "description": "The Autodesk ID of the user who created the custom attribute."
        },
        "updatedAt": {
          "type": "string",
          "description": "The last date and time the custom attribute was updated, in the following format: YYYY-MM-DDThh:mm:ss.sz."
        },
        "updatedBy": {
          "type": "string",
          "description": "The Autodesk ID of the user who last updated the custom attribute."
        },
        "deletedAt": {
          "type": "string",
          "description": "The date and time the custom attribute was deleted, in the following format: YYYY-MM-DDThh:mm:ss.sz."
        },
        "deletedBy": {
          "type": "string",
          "description": "The Autodesk ID of the user who deleted the custom attribute."
        }
      },
      "description": ""
    }
  }
}