curl -X PUT https://api.60db.ai/agents/simulation-drafts/DRAFT_ID \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{"script": "You are a polite billing agent…"}'
Agent Reliability
Update Simulation Draft
Edit the script of an unpublished draft
PUT
/
agents
/
simulation-drafts
/
{draftId}
curl -X PUT https://api.60db.ai/agents/simulation-drafts/DRAFT_ID \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{"script": "You are a polite billing agent…"}'
AI Simulation needs an active Pro or Business plan. On another plan, every simulation endpoint returns
403 POLICY_DENY.Request
Headers
Path
The
draft_id from Create simulation draftBody
Response
200 OK.{ "draft_id": "d_8f2", "published": false }
Errors
| Status | Code | Meaning |
|---|---|---|
| 400 | VALIDATION_ERROR | script is missing or longer than 32,000 characters |
| 403 | POLICY_DENY | Your role cannot run simulations, the workspace is not on an active Pro or Business plan, or the API key lacks the agents scope |
| 404 | DRAFT_NOT_FOUND | No draft with this ID in your workspace |
Example
curl -X PUT https://api.60db.ai/agents/simulation-drafts/DRAFT_ID \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{"script": "You are a polite billing agent…"}'