{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-mask-body-parts-request-schema.json",
  "title": "MaskBodyPartsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-photoshop-openapi.yml#/components/schemas/MaskBodyPartsRequest",
  "type": "object",
  "properties": {
    "image": {
      "description": "The input image.",
      "allOf": [
        {
          "$ref": "#/$defs/MaskBodyPartsInputImage"
        }
      ]
    },
    "mask": {
      "description": "The mask of the subject in the input image.",
      "allOf": [
        {
          "$ref": "#/$defs/MaskBodyPartsInputMask"
        }
      ]
    },
    "useGranularLabels": {
      "type": "boolean",
      "description": "When set to true, the API returns granular side-specific labels for bilateral body parts (e.g., Left Shoe, Right Shoe, Left Arm, Right Arm). When false or omitted, the API returns the default combined label set. See the Granular Labels section of the documentation for the full label reference.",
      "default": false
    }
  },
  "required": [
    "image",
    "mask"
  ],
  "$defs": {
    "MaskBodyPartsInputImage": {
      "type": "object",
      "properties": {
        "source": {
          "description": "The source of the input image. Dimensions of the image should not be greater than (4000px X 4000px).",
          "allOf": [
            {
              "$ref": "#/$defs/UrlResource"
            }
          ]
        }
      },
      "required": [
        "source"
      ]
    },
    "MaskBodyPartsInputMask": {
      "type": "object",
      "properties": {
        "source": {
          "description": "The URL of the mask. Dimensions of the mask should not be greater than (4000px X 4000px).",
          "allOf": [
            {
              "$ref": "#/$defs/UrlResource"
            }
          ]
        }
      },
      "required": [
        "source"
      ]
    },
    "UrlResource": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "The URL of the resource. Only these listed domains are accepted in the request:  \n  <ul><li><code>amazonaws.com</code></li><li><code>windows.net</code></li><li><code>dropboxusercontent.com</code></li><li><code>assets.frame.io</code></li><li><code>storage.googleapis.com</code></li></ul>"
        }
      },
      "required": [
        "url"
      ]
    }
  }
}