Skip to main content
POST
Rename Profile

Authorizations

X-Access-Token
string
header
required

Path Parameters

org_id
string<uuid> | null
required
name
string
required
Minimum string length: 1

Body

application/json

Request body for renaming a profile.

new_name is constrained to PROFILE_NAME_PATTERN because rename_llm_profile (the SDK FK-cascade helper backing this endpoint) validates the new name against that same pattern before renaming and repointing any referencing Agent Profiles — a name outside it always 422s there. Declaring the constraint here makes the schema honest and gives a field-level 422 instead of one raised deep inside the handler. save (create/update) is intentionally left permissive: it never calls the FK helper, so it has no such requirement.

new_name
string
required
Required string length: 1 - 64
Pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$

Response

Successful Response

Response for profile mutations (save, delete, rename).

name
string
required
message
string
required