Skip to main content
PUT
AI Simulation needs an active Pro or Business plan. On another plan, every simulation endpoint returns 403 POLICY_DENY.
Replace the script of a draft. Only drafts made from your own runs can be edited. The draft stays unpublished.

Request

Headers

string
required
Bearer token with your API key (scope agents)
string
required
application/json

Path

string
required
The draft_id from Create simulation draft

Body

string
required
1 to 32,000 characters

Response

200 OK.

Errors

Example