{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sudomock-com/json-schema/sudomock-com-photo-mockup-print-areas-update-response-schema.json",
  "title": "PhotoMockupPrintAreasUpdateResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sudomock-com-photo-mockups-api-openapi.yml#/components/schemas/PhotoMockupPrintAreasUpdateResponse",
  "properties": {
    "data": {
      "$ref": "#/$defs/PhotoMockupPrintAreasUpdateData",
      "description": "The mockup and the printable areas it carries after the replacement."
    },
    "success": {
      "type": "boolean",
      "const": true,
      "description": "Always true on a successful response.",
      "default": true
    }
  },
  "type": "object",
  "required": [
    "data"
  ],
  "$defs": {
    "PhotoMockupPrintArea": {
      "properties": {
        "print_area_id": {
          "type": "string",
          "description": "Unique identifier for the print area."
        },
        "points": {
          "anyOf": [
            {
              "items": {
                "items": {
                  "type": "number"
                },
                "type": "array"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "description": "The area's four [x, y] corner points in source image pixels."
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Label for the print area, such as 'Front'."
        },
        "sort_order": {
          "type": "integer",
          "description": "Position of this print area in the mockup's own order, starting at 0.",
          "default": 0
        }
      },
      "type": "object",
      "required": [
        "print_area_id"
      ],
      "title": "PhotoMockupPrintArea"
    },
    "PhotoMockupPrintAreasUpdateData": {
      "properties": {
        "mockup_id": {
          "type": "string",
          "description": "Unique identifier of the mockup whose print areas were replaced."
        },
        "print_areas": {
          "items": {
            "$ref": "#/$defs/PhotoMockupPrintArea"
          },
          "type": "array",
          "description": "The mockup's printable areas after the replacement, in the order they were saved."
        }
      },
      "type": "object",
      "required": [
        "mockup_id"
      ],
      "title": "PhotoMockupPrintAreasUpdateData"
    }
  }
}