Skip to main content

Activate agent profile

POST /api/agent-profiles/{profile_id}/activate

Activate a profile for the calling member — pointer only. Writes the per-member OrgMember.active_agent_profile_id and nothing else (no agent_settings materialization, and the profiles collection itself is untouched — the transaction helper skips the write-back when nothing mutated; #15044 §3). Member-facing, so it requires only VIEW_ORG_SETTINGS (each member picks their own active profile); profile CRUD requires EDIT_ORG_SETTINGS. 404 if no stored profile has that id.

Parameters

NameInTypeRequiredDescription
profile_idpathstringyes
org_idquery`stringnull`no

Responses

StatusDescription
200Successful Response
422Validation Error

Response body

FieldTypeRequiredDescription
idstringyes
messagestringyes
agent_settings_appliedbooleanno

Operation ID: activate_agent_profile_api_agent_profiles__profile_id__activate_post