> ## Documentation Index
> Fetch the complete documentation index at: https://browseruse-0aece648-larsen-v1-unified-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Browser Profile

> Rename a profile or change its userId. Send a field as null to clear it; omit to leave it.



## OpenAPI

````yaml /cloud/openapi/v1.json patch /browser-profiles/{profile_id}
openapi: 3.1.0
info:
  title: Browser Use API v1
  summary: Unified /api/v1 preview spec, non-production only
  version: 1.0.0
servers:
  - url: https://api-staging-ufcbwvyv9yifyyvc3.browser-use.com/api/v1
    description: Browser Use API v1 (staging)
security: []
paths:
  /browser-profiles/{profile_id}:
    patch:
      tags:
        - Browser profiles
      summary: Update Browser Profile
      description: >-
        Rename a profile or change its userId. Send a field as null to clear it;
        omit to leave it.
      operationId: update_browser_profile_browser_profiles__profile_id__patch
      parameters:
        - name: profile_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Profile Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateBrowserProfile'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrowserProfile'
        '404':
          description: Browser profile not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrowserProfileNotFoundError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    UpdateBrowserProfile:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: New name. Null clears it; omit to leave unchanged.
        userId:
          anyOf:
            - type: string
            - type: 'null'
          title: Userid
          description: New user id. Null clears it; omit to leave unchanged.
      additionalProperties: false
      type: object
      title: UpdateBrowserProfile
    BrowserProfile:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        userId:
          anyOf:
            - type: string
            - type: 'null'
          title: Userid
          description: Your internal user id for this profile.
        lastUsedAt:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Lastusedat
          description: When a run last used this profile, if ever.
        createdAt:
          type: string
          format: date-time
          title: Createdat
      type: object
      required:
        - id
        - createdAt
      title: BrowserProfile
    BrowserProfileNotFoundError:
      properties:
        detail:
          type: string
          title: Detail
          description: Human-readable error message
      type: object
      required:
        - detail
      title: BrowserProfileNotFoundError
      description: No browser profile with that id in this project.
    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
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-Browser-Use-API-Key

````