{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentpmt-com/json-schema/agentpmt-com-product-update-request-schema.json",
  "title": "ProductUpdateRequest",
  "description": "Request model for updating a product",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentpmt-com-openapi.json#/components/schemas/ProductUpdateRequest",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id",
      "description": "Product ID to update"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name",
      "description": "Product name"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description",
      "description": "Product description"
    },
    "type": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "data",
            "function",
            "physical",
            "compute",
            "model",
            "tool",
            "utility function",
            "connector",
            "core",
            "memory",
            "storage",
            "communications",
            "other"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Type",
      "description": "Product type"
    },
    "unit_type": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "minute",
            "request",
            "unit"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Unit Type",
      "description": "Unit type for pricing"
    },
    "price_per_unit": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Price Per Unit",
      "description": "Price per unit"
    },
    "minimum_order": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Minimum Order",
      "description": "Minimum order quantity"
    },
    "image_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Image Url",
      "description": "Product image URL"
    },
    "endpoint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Endpoint",
      "description": "API endpoint for the product"
    },
    "properties": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Properties",
      "description": "Additional product properties"
    },
    "actions": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Actions",
      "description": "Structured action definitions with optional per-action pricing"
    }
  },
  "type": "object",
  "required": [
    "id"
  ]
}