{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elhub/json-schema/elhub-service-provider-product-application-update-request-schema.json",
  "title": "service_provider_product_application_update_request",
  "description": "Request schema for update operations - Relation between a service provider and a system operator, for the SP to apply for delivering the SO some of the types of product they want to buy on a flexibility market.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elhub-service-provider-product-application-api-openapi.yml#/components/schemas/service_provider_product_application_update_request",
  "summary": "Update - Service Provider Product Application",
  "type": "object",
  "properties": {
    "product_type_ids": {
      "description": "References to the product types.",
      "type": "array",
      "items": {
        "format": "bigint",
        "type": "integer"
      }
    },
    "status": {
      "$ref": "#/$defs/service_provider_product_application_status",
      "default": "requested"
    },
    "qualified_at": {
      "description": "When the product application was last validated.",
      "format": "date-time",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "$defs": {
    "service_provider_product_application_status": {
      "description": "The status of the application.",
      "format": "text",
      "type": "string",
      "default": "requested",
      "enum": [
        "requested",
        "in_progress",
        "communication_test",
        "not_qualified",
        "qualified"
      ]
    }
  }
}