POST /api/v1/queryservices/{name}/scale
Change the replica count for a supported component of a cluster.
Access
Request a workspace OAuth token for the workspace that owns the resource. If your workspace uses OAuth scopes for API access, request query_engine.clusters:update. If your admin confirms that workspace permissions are active for management API calls, omit the scope field for this call.
Request
Path: name. Body: component and replicas are required. The example sets the executor count to five.
Content type: application/json.
Body fields
Example request
Save the JSON request above as request.json.
Set WORKSPACE_URL to the same HTTPS workspace origin and ACCESS_TOKEN to the access token from that workspace. Replace example names and IDs with values from your workspace.
Response
HTTP 200. Content type: application/json.
Example response (selected fields and sample values):
The message field contains text from your workspace. The example uses a placeholder for that text.
Use PUT on the cluster to change the allowed autoscaling range. This scale call takes a component and a replica count.
Troubleshooting
For 401, check the workspace URL and token expiry. For 403, ask your admin to check the machine client’s access to this operation and resource. In a scope-based workspace, also check the scope on the token. Troubleshoot the token or request.
400: invalid component or count. 409: the cluster cannot scale in its current state.
Workspace management guideLast modified on December 2, 2026