---
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

## Changes

- **2026-07-23** `a9c928635312` — 1 breaking, 2 info
  - added the pattern `^[a-f\d]{24}$` to the `path` request parameter `id`
  - endpoint deprecated
  - added the non-success response with the status `409`
- **2026-07-17** `4f549f4b38c5` — 1 info
  - endpoint reactivated
- **2026-07-17** `f6ed52db5f7c` — 1 info
  - endpoint deprecated
- **2026-05-26** `5a6b4e19f353` — 1 breaking, 2 info
  - the `draftName` request property's minLength was increased from `0` to `1`
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`
- **2026-04-20** `801f1d220d57` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/smallest-inc/apis/agent-management-api/changes/agent/:id/drafts/:draftId/patch.md)

---

[API](https://skmtc.dev/smallest-inc/apis/agent-management-api.md) · [All operations](https://skmtc.dev/smallest-inc/apis/agent-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/smallest-inc/agent-management-api/revisions/274a178284a4/schema)
