---
title: "Rename a draft"
method: PATCH
path: "/agent/{id}/drafts/{draftId}"
tags: ["Agent Versioning - Drafts"]
deprecated: true
---

# Rename a draft

`PATCH /agent/{id}/drafts/{draftId}`

> **Deprecated.**

**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](/voice-agents/deprecations/agent-versioning-migration).

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

## Path parameters

- `id` string, required
- `draftId` string, required

## Request body

- object
  - `draftName` string, required — New name for the draft (1–100 characters)

## Response `200`

Draft renamed successfully

- object
  - `status` boolean
  - `data` object
    - `draftName` string

## Other responses

- `400` — Invalid input
- `401` — Unauthorized access
- `403` — Forbidden access
- `404` — Agent or draft not found
- `409` — The v1 versioning endpoint is deprecated on the branch model and will not process this request. The response body carries `error_type: "versioning_v2_migration_required"` and the response includes the `Deprecation: true` header. See the [migration guide](/voice-agents/deprecations/agent-versioning-migration) for the v2 equivalent.
- `500` — Internal server error

---

[API](https://skmtc.net/smallest-inc/apis/agent-management-api.md) · [All operations](https://skmtc.net/smallest-inc/apis/agent-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smallest-inc/agent-management-api/versions/6d1036a76fbc/schema)
