Edit Deployment
https://{organization}.blackbox.ai/dedicated/editUpdate the scaling policy, description, or enabled state of an existing deployment.
Patch mutable fields on an existing deployment. Only fields present in patch are updated; the rest are left unchanged. GPU type, GPU count, region, and the underlying template are immutable — recreate the deployment to change them.
Headers
AuthorizationstringrequiredAPI Key of the form Bearer <api_key>. Must own the deployment.
Content-TypestringrequiredMust be set to application/json.
Request Body
deployment_idstringrequiredUUID of the deployment to update. Get this from POST /dedicated/create-deployment or GET /dedicated/list.
patchobjectrequiredFields to update.
Response
Returns the updated deployment object — same shape as the response from POST /dedicated/create-deployment.
deployment_idstringUUID of the deployment.
modelstringClient-facing model id.
model_namestringTemplate name the deployment was created from.
statusstring | nullCurrent lifecycle status.
scalingobjectEffective scaling policy after the update.
descriptionstring | nullDescription after the update.
created_atstringISO 8601 timestamp of creation.
updated_atstringISO 8601 timestamp of this update.
curl -X POST https://{organization}.blackbox.ai/dedicated/edit \
-H "Authorization: Bearer $BLACKBOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"deployment_id": "9c8b7a6d-5e4f-3a2b-1c0d-ef1234567890",
"patch": {
"scaling": { "min_replicas": 0, "max_replicas": 8 },
"description": "Scaled up for launch week"
}
}'import os
import requests
response = requests.post(
"https://{organization}.blackbox.ai/dedicated/edit",
headers={
"Authorization": f"Bearer {os.environ['BLACKBOX_API_KEY']}",
"Content-Type": "application/json",
},
json={
"deployment_id": "9c8b7a6d-5e4f-3a2b-1c0d-ef1234567890",
"patch": {
"scaling": {"min_replicas": 0, "max_replicas": 8},
"description": "Scaled up for launch week",
},
},
)
print(response.json())const response = await fetch("https://{organization}.blackbox.ai/dedicated/edit", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.BLACKBOX_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
deployment_id: "9c8b7a6d-5e4f-3a2b-1c0d-ef1234567890",
patch: {
scaling: { min_replicas: 0, max_replicas: 8 },
description: "Scaled up for launch week",
},
}),
});
const data = await response.json();
console.log(data);{
"deployment_id": "9c8b7a6d-5e4f-3a2b-1c0d-ef1234567890",
"model": "dedicated/openai/gpt-oss-20b-Ab3xY9K1mN2p",
"model_name": "openai/gpt-oss-20b",
"status": "running",
"scaling": {
"min_replicas": 0,
"max_replicas": 8
},
"description": "Scaled up for launch week",
"created_at": "2026-07-10T14:22:05Z",
"updated_at": "2026-07-10T15:03:47Z"
}Error Codes
| Status | Error | Description |
|---|---|---|
| 400 | invalid_request |
Missing deployment_id, empty patch, or invalid field values. |
| 401 | unauthorized |
Missing or invalid API key. |
| 404 | deployment_not_found |
No deployment with that id owned by the caller. Deployments are scoped by account — you cannot edit another user's deployment. |