> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openhands.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Activate Agent Profile

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



## OpenAPI

````yaml /openapi/openhands-cloud.json post /api/agent-profiles/{profile_id}/activate
openapi: 3.1.0
info:
  title: OpenHands
  description: 'OpenHands: Code Less, Make More'
  version: 0.0.1
servers: []
security: []
paths:
  /api/agent-profiles/{profile_id}/activate:
    post:
      tags:
        - Agent Profiles
      summary: Activate Agent Profile
      description: >-
        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.
      operationId: activate_agent_profile_api_agent_profiles__profile_id__activate_post
      parameters:
        - name: profile_id
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 128
            title: Profile Id
        - name: org_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Org Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActivateAgentProfileResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    ActivateAgentProfileResponse:
      properties:
        id:
          type: string
          title: Id
        message:
          type: string
          title: Message
        agent_settings_applied:
          type: boolean
          title: Agent Settings Applied
          default: false
      type: object
      required:
        - id
        - message
      title: ActivateAgentProfileResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-Access-Token

````