{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whatsapp/json-schema/whatsapp-set-solution-migration-intent-request-schema.json",
  "title": "SetSolutionMigrationIntentRequest",
  "description": "Request payload for setting solution migration intent",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whatsapp-solution-migration-api-openapi.yml#/components/schemas/SetSolutionMigrationIntentRequest",
  "type": "object",
  "required": [
    "solution_id",
    "migration_intent"
  ],
  "properties": {
    "solution_id": {
      "type": "string",
      "description": "Unique identifier for the Multi-Partner Solution",
      "pattern": "^[0-9]+$"
    },
    "migration_intent": {
      "$ref": "#/$defs/SolutionMigrationIntent"
    },
    "target_solution_id": {
      "type": "string",
      "description": "Target solution ID for migration (required for certain migration intents)",
      "pattern": "^[0-9]+$"
    },
    "migration_reason": {
      "type": "string",
      "description": "Reason for the migration intent",
      "maxLength": 500
    },
    "scheduled_migration_time": {
      "type": "string",
      "format": "date-time",
      "description": "Scheduled time for migration execution (ISO 8601 format)"
    }
  },
  "$defs": {
    "SolutionMigrationIntent": {
      "type": "string",
      "description": "Intent for solution migration",
      "enum": [
        "INITIATE_MIGRATION",
        "CANCEL_MIGRATION",
        "CONFIRM_MIGRATION",
        "SCHEDULE_MIGRATION"
      ]
    }
  }
}