{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clonelyapp-com/json-schema/clonelyapp-com-product-copy-response-schema.json",
  "title": "ProductCopyResponse",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clonelyapp-com-openapi.json#/components/schemas/ProductCopyResponse",
  "type": "object",
  "properties": {
    "product": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "handle": {
          "type": "string"
        },
        "title": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "handle",
        "title"
      ]
    },
    "sourceUrl": {
      "type": "string"
    },
    "outcome": {
      "type": "string",
      "enum": [
        "created",
        "updated",
        "partial"
      ],
      "description": "partial: created or updated, but part of it failed (see message). A product that was skipped because it is already in the store is not a 200: it is 409 product_exists or not_copied."
    },
    "message": {
      "type": [
        "string",
        "null"
      ],
      "description": "What failed, for partial; why the product is not in the collection."
    },
    "addedToCollection": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "null when no destination was given. false: the product was copied, but not added (see message)."
    }
  },
  "required": [
    "product",
    "sourceUrl",
    "outcome",
    "message",
    "addedToCollection"
  ]
}