Save the agent's draft - never changes the running agent
Saves a draft against expectedRevision. Send the body as EXACTLY the object you read from GET, with one change applied - the body is .strict(), so even a small unknown key returns 400. Saving NEVER changes the running agent. The GET .../draft example above shows the state AFTER this PUT (revision 3 -> 4): that's why this PUT sends expectedRevision: 3 (the revision the edit was based on), and GET above already returns revision: 4 (the new revision after saving).
put/v1/agents/{id}/draft
Request
- Base URL: https://volai.cz
- URL: https://volai.cz/v1/agents/{id}/draft
- Auth: HTTP bearer
Path parameters
idstring required
Request body
Response
Saved draft
Changes
No recorded changes to this operation across all 1 revision of this API.