Create a draft

View as Markdown
Create a new draft from an existing published version or another draft. Exactly one of sourceVersionId or sourceDraftId is required.

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

Request

This endpoint expects an object.
sourceVersionIdstringOptionalformat: "^[a-f\d]{24}$"
ID of a published version to branch from
sourceDraftIdstringOptional
ID of an existing draft to branch from
draftNamestringOptional<=100 characters
Optional name for the draft

Response

Draft created successfully
statusboolean
dataobject
Represents either a draft revision or a published version of an agent's configuration.

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error