> ## 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 Profile

> Activate a profile for the current user.

Two side effects: updates the org-wide ``profiles.active`` marker and
writes the profile's LLM into the calling member's
``agent_settings_diff``. Both writes share a single transaction so a
failure in the second can't leave the org marker advanced without the
member's settings catching up. Because the first effect is org-level
state, this requires ``EDIT_ORG_SETTINGS`` — matching the CRUD endpoints
rather than the read-only listing. For personal orgs the owner has the
permission natively; for team orgs this scopes "set org default profile"
to admins.



## OpenAPI

````yaml /openapi/openhands-cloud.json post /api/organizations/{org_id}/profiles/{name}/activate
openapi: 3.1.0
info:
  title: OpenHands
  description: 'OpenHands: Code Less, Make More'
  version: 0.0.1
servers: []
security: []
paths:
  /api/organizations/{org_id}/profiles/{name}/activate:
    post:
      tags:
        - Organization Profiles
      summary: Activate Profile
      description: |-
        Activate a profile for the current user.

        Two side effects: updates the org-wide ``profiles.active`` marker and
        writes the profile's LLM into the calling member's
        ``agent_settings_diff``. Both writes share a single transaction so a
        failure in the second can't leave the org marker advanced without the
        member's settings catching up. Because the first effect is org-level
        state, this requires ``EDIT_ORG_SETTINGS`` — matching the CRUD endpoints
        rather than the read-only listing. For personal orgs the owner has the
        permission natively; for team orgs this scopes "set org default profile"
        to admins.
      operationId: >-
        activate_profile_api_organizations__org_id__profiles__name__activate_post
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Org Id
        - name: name
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            title: Name
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/server__routes__org_profiles__ActivateProfileResponse
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    server__routes__org_profiles__ActivateProfileResponse:
      properties:
        name:
          type: string
          title: Name
        message:
          type: string
          title: Message
        llm:
          additionalProperties: true
          type: object
          title: Llm
      type: object
      required:
        - name
        - message
        - llm
      title: ActivateProfileResponse
      description: Response for activating a profile.
    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

````