{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/autodesk/json-schema/autodesk-specific-properties-payload-schema.json",
  "title": "SpecificPropertiesPayload",
  "description": "Represents the request body of a Fetch Specific Properties operation.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/autodesk-aps-model-derivative-openapi.yml#/components/schemas/SpecificPropertiesPayload",
  "type": "object",
  "properties": {
    "pagination": {
      "type": "object",
      "description": "Specifies how to split the response into multiple pages, and return the response one page at a time.",
      "required": [
        "offset",
        "limit"
      ],
      "properties": {
        "offset": {
          "type": "number",
          "description": "The number of properties to skip. Use this attribute with the ``limit`` attribute to split the properties into multiple pages. To fetch the first page, specify ``offset`` =0 (do not skip any properties). To fetch the second page, specify ``offset`` = value of ``limit`` you specified for the first page. So, the server skips the properties returned on the first page. In general, ``offset`` = ``previous_offset`` + ``previous_limit``. This attribute is 0 by default. The minimum value is 0."
        },
        "limit": {
          "type": "number",
          "description": "The maximum number of properties to return in a single page. Use this attribute with the ``offset`` attribute to split the properties into multiple pages. To fetch the first page, specify ``offset`` =0 (do not skip any properties). To fetch the second page, specify ``offset`` = value of ``limit`` you specified for the first page. So, the server skips the search results returned on the first page. In general, ``offset`` = ``previous_offset`` + ``previous_limit``. This attribute is 20 by default. The minimum value is 1 and the maximum is 1000."
        }
      }
    },
    "query": {
      "description": "Specifies what objects to query. \nContains the parameters to pass to the search service. \nYou can use one of the following forms: ",
      "oneOf": [
        {
          "$ref": "#/$defs/MatchId"
        },
        {
          "$ref": "#/$defs/BeginsWith"
        },
        {
          "$ref": "#/$defs/EqualsTo"
        },
        {
          "$ref": "#/$defs/Between"
        },
        {
          "$ref": "#/$defs/LessThan"
        },
        {
          "$ref": "#/$defs/GreaterThan"
        },
        {
          "$ref": "#/$defs/Contains"
        }
      ]
    },
    "fields": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Specifies what properties of the objects to return. If you do not specify this attribute, the response returns all properties.\n\nPossible values are:\n\n- ``properties`` - Return all properties.\n- ``properties.something``- Return the property named ``something`` and all its children.\n- ``properties.some*`` - Return all properties with names that begin with ``some`` and all their children.\n- ``properties.category.*`` - Return the property named ``category`` and all its children.\n- ``properties.*.property`` - Return any property named ``property`` regardless of its parent.\n"
    },
    "payload": {
      "$ref": "#/$defs/Payload"
    }
  },
  "required": [
    "pagination",
    "query",
    "fields"
  ],
  "$defs": {
    "BeginsWith": {
      "title": "Begins With",
      "type": "object",
      "description": "Describes a query for retrieving objects with names that start with a specified string.",
      "properties": {
        "$prefix": {
          "type": "array",
          "description": "Returns only the objects with their ``name`` attribute beginning with the specified string.\n\nThe first element of the array contains the name of the attribute to match (``name``). The second element contains the string to match. The array can have only two elements. Only the objects whose name begin with the specified string are returned.\n",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "$prefix"
      ],
      "additionalProperties": false
    },
    "Between": {
      "title": "Between",
      "type": "object",
      "description": "Describes a query for retrieving objects where a specified numeric property falls within a specified range.",
      "properties": {
        "$between": {
          "type": "array",
          "description": "Returns only the objects where the value of the specified numeric property lies between the specified values.\n\nThe first element of the array contains the name of the property. The next two elements specify the values that the property must lie between. The array can only be three elements long.\n\nFor example, if you specify an array as: ``\"$between\":[\"properties.Dimensions.Width1\",1,10]``, the request returns the properties of all objects whose ``properties.Dimensions.Width1`` property is between ``1`` and ``10``.\n\n**Note:** The Model Derivative service converts numeric values from their native units to metric base units for comparison. So, you must specify the values to compare with in metric base units. For example, if the property you are comparing is a length measurement, you must specify the values  in ``m``.  Not in ``cm``, ``mm``, or ``ft``.",
          "items": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              }
            ]
          }
        }
      },
      "required": [
        "$between"
      ],
      "additionalProperties": false
    },
    "Contains": {
      "title": "Contains",
      "type": "object",
      "description": "Describes a query for retrieving objects where a specified property contains one or more words in a specified string.",
      "properties": {
        "$contains": {
          "type": "array",
          "description": "Returns only the objects where the value of the specified property contains the words specified in a string.\n\nThe first element of the array contains the name of the property. The second element contains a string containing the words to match. The array can only be two elements long.\n\nFor example, if you specify an array as: ``\"$contains\":[\"properties.Materials and Finishes.Structural Material\",\"Concrete Situ\"]``, the request returns the properties of all objects whose ``properties.Materials and Finishes.Structural Material`` property contains the words  ``Concrete`` and ``Situ``. You can specify up to 50 words.",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "$contains"
      ],
      "additionalProperties": false
    },
    "EqualsTo": {
      "title": "Equals To",
      "type": "object",
      "description": "Describes a query for retrieving objects where a specified attribute exactly matches a specified value.",
      "properties": {
        "$eq": {
          "type": "array",
          "description": "Returns only the objects where the value of the specified attribute (``name`` attribute or any numerical property) is exactly equal to the specified value.\n\nThe first element of the array contains the name of the attribute. This can be the ``name`` attribute or the name of a numerical property. The second element of the array must be the value to match. If the first element is ``name``, must be a string value. If the first element is a numerical property, must be a numeric. The array can only be two elements long.\n\nFor example, if you specify an array as: ``\"$eq\":[\"name\",\"Rectangular\"]``, the request will only return the properties of the object named ``Rectangular``. if you specify an array as: ``\"$eq\":[\"properties.Dimensions.Width1\",0.6]``, the request will return the properties of all objects whose ``properties.Dimensions.Width1`` property is exactly equal to ``0.6``.\n\n**Note:** We recommend that you  use ``$between``  instead of ``$eq`` when testing non-integer numeric values for equality. Using ``between`` mitigates floating-point errors.",
          "items": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              }
            ]
          }
        }
      },
      "required": [
        "$eq"
      ],
      "additionalProperties": false
    },
    "GreaterThan": {
      "title": "Greater Than",
      "type": "object",
      "description": "Use this to retrieve only the properties of objects where a specified property is greater than a specified value. ",
      "properties": {
        "$ge": {
          "type": "array",
          "description": "Returns only the objects where the value of the specified numerical property is greater than or equal to the specified value.\n\nThe first element of the array contains the name of the property. The next element specifies the values that the property must be greater than or equal to. The array can only be two elements long.\n\nFor example, if you specify an array as: ``\"$ge\":[\"properties.Dimensions.Width1\",0.1]``, the request returns the properties of all objects whose ``properties.Dimensions.Width1`` property is greater than or equal to  ``0.1``.\n\n**Note:** The Model Derivative service converts numeric values from their native units to metric base units for comparison. So, the value to compare with must be specified in metric base units. For example, if the property you are comparing is a length measurement, you must specify the value  in ``m``.  Not in ``cm``, ``mm``, or ``ft``.\n",
          "items": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              }
            ]
          }
        }
      },
      "required": [
        "$ge"
      ],
      "additionalProperties": false
    },
    "LessThan": {
      "title": "Less Than",
      "type": "object",
      "description": "Describes a query for retrieving objects where a specified numeric property is less than or equal to a specified value.",
      "properties": {
        "$le": {
          "type": "array",
          "description": "Returns only the objects where the value of the specified numeric property is less than or equal to the specified value.\n\nThe first element of the array contains the name of the property. The next element specifies the values that the property must be less than or equal to. The array can only be two elements long.\n\nFor example, if you specify an array as: ``\"$le\":[\"properties.Dimensions.Width1\",10]``, the request returns the properties of all objects whose ``properties.Dimensions.Width1`` property is less than or equal to ``10``.\n\n**Note:** The Model Derivative service converts numeric values from their native units to metric base units for comparison. So, the value to compare with must be specified in metric base units. For example, if the property you are comparing is a length measurement, you must specify the value  in ``m``.  Not in ``cm``, ``mm``, or ``ft``.",
          "items": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              }
            ]
          }
        }
      },
      "required": [
        "$le"
      ],
      "additionalProperties": false
    },
    "MatchId": {
      "title": "Match Id",
      "type": "object",
      "description": "Describes a query for retrieving objects having the specified Object IDs or External IDs.",
      "properties": {
        "$in": {
          "type": "array",
          "description": "Returns only the objects with their ``objectid`` or ``externalId`` attribute exactly matching one of the values specified in the array.\n\nThe first element of the array contains the name of the attribute to match (``objectid`` or ``externalId``). Subsequent elements contain the values to match.\n\nFor example, if you specify an array as: ``\"$in\":[\"objectid\",1,2]``, the request will only return the properties of the objects with ``objectid`` = ``1`` and ``2``. If you specify an array as ``\"$in\":[\"externalId\",\"doc_982afc8a\",\"doc_afd75233\" ]`` the request will only return the properties of the objects with ``externalId`` = ``doc_982afc8a`` and ``doc_afd75233``.\n",
          "items": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              }
            ]
          }
        }
      },
      "required": [
        "$in"
      ],
      "additionalProperties": false
    },
    "Payload": {
      "type": "string",
      "description": "Specifies the format for numeric values in the response body. Possible values:\n\n- ``text`` - (Default) Returns all properties requested in ``fields`` without applying any special formatting.\n- ``unit`` - Applies a filter and returns only the properties that contain numerical values. Additionally, it formats property values as ``##<VALUE_OF_PROPERTY><UNIT_OF_VALUE><PRECISION><SYSTEM_UNIT>``. For example ``##94.172{mm}[3]{m}``, where ``94.172`` is the value of the property, ``{mm}`` is the unit of the value, ``[3]`` is the precision, and ``{m}`` is the metric base unit for the measurement.\n",
      "minLength": 1,
      "enum": [
        "text",
        "unit"
      ]
    }
  }
}