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

# Rename or Promote a Wallet

> Rename a wallet and/or promote it to the user's primary for its currency.

To change which wallet is primary, PATCH the wallet you want to
**promote** with ``is_primary=true`` — the previous primary is demoted
automatically in the same transaction. Sending ``is_primary=false`` is
rejected; every (user, currency) must have exactly one primary.

Master wallets cannot be renamed or re-prioritized.



## OpenAPI

````yaml PATCH /v1/platform/wallets/{wallet_id}
openapi: 3.1.0
info:
  title: Finogate Platform API v1
  version: 0.1.0
servers:
  - url: https://api-sandbox.finogates.com
    description: Sandbox
  - url: https://api.finogates.com
    description: Production
security: []
tags:
  - name: auth
  - name: users
  - name: payees
  - name: verification
  - name: bank accounts
  - name: card processing
  - name: digital-assets
  - name: international
  - name: onboarding
  - name: pending-applications
  - name: wallets
  - name: payments
  - name: catalog
  - name: webhooks
  - name: phone-numbers
  - name: sms
  - name: calls
  - name: listings
  - name: embed-tokens
paths:
  /v1/platform/wallets/{wallet_id}:
    patch:
      tags:
        - wallets
      summary: Rename or Promote a Wallet
      description: >-
        Rename a wallet and/or promote it to the user's primary for its
        currency.


        To change which wallet is primary, PATCH the wallet you want to

        **promote** with ``is_primary=true`` — the previous primary is demoted

        automatically in the same transaction. Sending ``is_primary=false`` is

        rejected; every (user, currency) must have exactly one primary.


        Master wallets cannot be renamed or re-prioritized.
      operationId: update_wallet_v1_platform_wallets__wallet_id__patch
      parameters:
        - name: wallet_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: The wallet UUID.
            title: Wallet Id
          description: The wallet UUID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WalletUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - _AuthenticatedBearer: []
components:
  schemas:
    WalletUpdate:
      properties:
        name:
          anyOf:
            - type: string
              maxLength: 60
              minLength: 1
            - type: 'null'
          title: Name
          description: New display name (unique per (tenant, user)).
        is_primary:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Primary
          description: >-
            Set true to promote this wallet to primary for its (user, currency).
            Cannot be set to false directly — to change the primary, promote a
            different wallet instead.
      type: object
      title: WalletUpdate
      description: |-
        Rename and/or promote-to-primary in a single PATCH.

        Both fields are optional; at least one must be present.
    CommonResponse:
      properties:
        status_code:
          type: integer
          title: Status Code
          description: HTTP status code for the response.
        data:
          title: Data
          description: Payload or error details.
        query_generated_time:
          type: integer
          title: Query Generated Time
          description: >-
            UTC timestamp (milliseconds since epoch) when response was
            generated.
      type: object
      required:
        - status_code
        - data
        - query_generated_time
      title: CommonResponse
      description: |-
        Standard response wrapper for single-object responses and errors.

        Generic over the payload type. A route that declares
        ``CommonResponse[SomeModel]`` gets the real ``data`` schema rendered in
        OpenAPI/Swagger; a bare ``CommonResponse`` leaves ``data`` untyped.
    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:
    _AuthenticatedBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: /v1/platform/auth/token

````