---
updatedAt: 2026-05-21T10:44:50.000Z
agentTools:
  projectIndex: https://docs.qpilot.cloud/llms.txt
---

# Switch Customer in Scheduled Order

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "QPilot API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.qpilot.cloud"
    }
  ],
  "paths": {
    "/Sites/{siteId}/ScheduledOrders/{scheduledOrderId}/SwitchCustomer": {
      "patch": {
        "tags": [
          "ScheduledOrders"
        ],
        "summary": "Switch Customer in Scheduled Order",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "description": "The site identifier",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "scheduledOrderId",
            "in": "path",
            "description": "The scheduled order identifier",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/QPilot.Core.Models.Dto.Requests.SwitchCustomerRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QPilot.Core.Models.Dto.Requests.SwitchCustomerRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QPilot.Core.Models.Dto.Requests.SwitchCustomerRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QPilot.Core.Models.Dto.Requests.SwitchCustomerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "QPilot.Core.Models.Dto.Requests.SwitchCustomerRequest": {
        "required": [
          "newCustomerId",
          "oldCustomerId"
        ],
        "type": "object",
        "properties": {
          "oldCustomerId": {
            "type": "integer",
            "format": "int64"
          },
          "newCustomerId": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "description": "Authorization header using the Bearer scheme. Example: \"Bearer {token}\"",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "Bearer": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```