Rename a draft

View as Markdown

Rename a draft. For config changes, use PATCH /agent/{id}/drafts/{draftId}/config instead.

Authentication

AuthorizationBearer

API key from the console ApiKey collection, sent as Bearer token. Also accepts session cookies for browser-based auth.

Path parameters

idstringRequired
The agent ID
draftIdstringRequired
The draft ID

Request

This endpoint expects an object.
draftNamestringRequired<=100 characters
New name for the draft

Response

Draft renamed successfully
statusboolean
dataobject

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error