v45

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-0114775543.6 KB
Agent Versioning - Drafts

Rename a draft

Deprecated on the v2 branch model. Migrate to PUT /agent/{id}/branches/{branchId}/draft. When ENABLE_BRANCH_MODEL is on, this endpoint returns 409 versioning_v2_migration_required with the Deprecation: true header. See the migration guide.

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

patch/agent/{id}/drafts/{draftId}

Path parameters

idstring required

The agent ID.

draftIdstring required

The draft ID

Request body

draftNamestring required

New name for the draft (1–100 characters)

Response

Draft renamed successfully

statusboolean

Example response

{
  "status": true
}