{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/autodesk/json-schema/autodesk-attr-definition-page-schema.json",
  "title": "attr_definition",
  "description": "The pagination object.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/autodesk-issue-attribute-definitions-api-openapi.yml#/components/schemas/attr_definition_page",
  "type": "object",
  "x-stoplight": {
    "id": "bvhkdkasjb7j1"
  },
  "properties": {
    "pagination": {
      "$ref": "#/$defs/Pagination"
    },
    "results": {
      "type": "array",
      "description": "A list of issue attribute definition.",
      "items": {
        "$ref": "#/$defs/attr_definition"
      }
    }
  },
  "$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."
        }
      }
    },
    "attr_definition": {
      "title": "attr_definition",
      "x-stoplight": {
        "id": "3icmlmiozfuaj"
      },
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of the custom attribute."
        },
        "containerId": {
          "type": "string",
          "description": "Not relevant"
        },
        "description": {
          "type": "string",
          "x-stoplight": {
            "id": "jcsrljuzc5ltj"
          },
          "description": "The description of the custom attribute."
        },
        "title": {
          "type": "string",
          "x-stoplight": {
            "id": "zd4k05m5j6ifx"
          },
          "description": "The title of the custom attribute.\n"
        },
        "dataType": {
          "$ref": "#/$defs/dataType"
        },
        "metadata": {
          "type": "object",
          "x-stoplight": {
            "id": "vpa2pq35qsa00"
          },
          "description": "The metadata object; only relevant for list custom attributes.",
          "properties": {
            "list": {
              "type": "object",
              "x-stoplight": {
                "id": "rd1fhxgy7rswy"
              },
              "description": "The list object.",
              "properties": {
                "options": {
                  "type": "array",
                  "x-stoplight": {
                    "id": "8zdw37ff98qva"
                  },
                  "description": "The options object.",
                  "items": {
                    "x-stoplight": {
                      "id": "ue5tmahyx0kgr"
                    },
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "x-stoplight": {
                          "id": "7eggkpbtz4wb9"
                        },
                        "description": "The id of the list option."
                      },
                      "value": {
                        "type": "string",
                        "x-stoplight": {
                          "id": "2dimim80rfccy"
                        },
                        "description": "The value of the list item."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "permittedActions": {
          "type": "array",
          "description": "Not relevant",
          "items": {
            "type": "string"
          }
        },
        "permittedAttributes": {
          "type": "array",
          "description": "Not relevant",
          "items": {
            "type": "string"
          }
        },
        "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."
        }
      }
    },
    "dataType": {
      "title": "filterdataType",
      "x-stoplight": {
        "id": "szgoga8vkzknv"
      },
      "type": "string",
      "enum": [
        "list",
        "text",
        "paragraph",
        "numeric"
      ],
      "description": "Retrieves issue custom attribute definitions with the specified data type"
    }
  }
}