Agent Versioning - Drafts
Rename a draft
Changed onDeprecated 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}
Request
- Base URLhttps://api.smallest.ai/atoms/v1
- URLhttps://api.smallest.ai/atoms/v1/agent/{id}/drafts/{draftId}
- AuthHTTP bearer
Path parameters
idstring required
The agent ID.
draftIdstring required
The draft ID
Request body
Response
Draft renamed successfully
Example response
{
"status": true
}Changes
- breaking
added the pattern
^[a-f\d]{24}$to thepathrequest parameterid - info
endpoint deprecated
- info
added the non-success response with the status
- breaking
- info
endpoint reactivated
- info