Adobe Photoshop · Schema

SmartObjectRequest

SmartObjectRequest from Adobe Photoshop API

AI/MLCreative CloudImage EditingPhotoshopPluginsREST APIScripting

Properties

Name Type Description
inputs array
options object
outputs array
View JSON Schema on GitHub

JSON Schema

adobe-photoshop-api-smart-object-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adobe-photoshop/refs/heads/main/json-schema/adobe-photoshop-api-smart-object-request-schema.json",
  "title": "SmartObjectRequest",
  "description": "SmartObjectRequest from Adobe Photoshop API",
  "type": "object",
  "properties": {
    "inputs": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StorageInput"
      }
    },
    "options": {
      "type": "object",
      "required": [
        "layers"
      ],
      "properties": {
        "layers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Layer name to target."
              },
              "id": {
                "type": "integer",
                "description": "Layer ID to target."
              },
              "type": {
                "type": "string",
                "const": "smartObject"
              },
              "input": {
                "$ref": "#/components/schemas/StorageInput"
              },
              "smartObject": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "MIME type of the replacement content."
                  }
                }
              },
              "attributes": {
                "$ref": "#/components/schemas/LayerBounds"
              }
            }
          }
        }
      }
    },
    "outputs": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StorageOutput"
      }
    }
  },
  "required": [
    "inputs",
    "options",
    "outputs"
  ]
}