Save agent profile
POST /api/agent-profiles/{name}
Create or update an agent profile under name (path name is authoritative). Server-managed id/revision: overwrite keeps the namesake's id and bumps revision; create mints a fresh id (save_profile_preserving_identity). Returns 422 on invalid payloads (secret-safe detail) and 409 when creating a new profile would exceed MAX_AGENT_PROFILES.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
name | path | string | yes | — |
org_id | query | `string | null` | no |
Responses
| Status | Description |
|---|---|
201 | Successful Response |
422 | Validation Error |
Response body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yes | — |
message | string | yes | — |
Operation ID: save_agent_profile_api_agent_profiles__name__post