{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aidelly-ai/json-schema/aidelly-ai-create-photo-request-schema.json",
  "title": "CreatePhotoRequest",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aidelly-ai-openapi.yml#/components/schemas/CreatePhotoRequest",
  "type": "object",
  "required": [
    "platform",
    "source_url",
    "category"
  ],
  "additionalProperties": false,
  "properties": {
    "workspace_id": {
      "type": "string",
      "format": "uuid",
      "description": "Workspace ID for this operation."
    },
    "platform": {
      "type": "string",
      "enum": [
        "google_business"
      ],
      "description": "Currently only google_business is supported."
    },
    "account_id": {
      "type": "string",
      "description": "For `google_business`, the location resource name to upload to —\neither fully-qualified `accounts/{accountId}/locations/{locationId}`\nor the relative `locations/{locationId}` form. If omitted, the\nworkspace's default location is used.\n"
    },
    "source_url": {
      "type": "string",
      "format": "uri",
      "description": "Public URL of the image to upload. Must be reachable by Google's\nservers. Use a `read_url` returned by `POST /media/upload-url` for\nfiles stored in Aidelly.\n"
    },
    "category": {
      "type": "string",
      "enum": [
        "PROFILE",
        "LOGO",
        "COVER",
        "EXTERIOR",
        "INTERIOR",
        "PRODUCT",
        "AT_WORK",
        "FOOD_AND_DRINK",
        "MENU",
        "COMMON_AREA",
        "ROOMS",
        "TEAMS",
        "ADDITIONAL"
      ],
      "description": "Where the photo lands on the location's listing. `PROFILE`,\n`LOGO`, and `COVER` replace the existing identity photos; the\nrest append to the gallery.\n"
    },
    "description": {
      "type": "string",
      "maxLength": 500,
      "description": "Optional caption associated with the photo on Google's side."
    },
    "metadata": {
      "type": "object",
      "additionalProperties": true
    }
  }
}