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

# UpdateWallet

> Update a wallet's name or status by its address.

Update a wallet's `name` or `status` by its `address`. Provide at least one of the two.


## OpenAPI

````yaml openapi.json POST /v1/updateWallet
openapi: 3.1.0
info:
  title: mpcvault.platform.v1
  version: 0.0.1
servers:
  - url: https://api.mpcvault.com
    description: MPCVault API Server
security:
  - ApiKeyAuth: []
tags:
  - name: mpcvault.platform.v1.PlatformAPI
paths:
  /v1/updateWallet:
    post:
      tags:
        - mpcvault.platform.v1.PlatformAPI
      summary: UpdateWallet
      description: >-
        Update a wallet's name or status by its address. Provide at least one of
        the two.
      operationId: mpcvault.platform.v1.PlatformAPI.UpdateWallet
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/mpcvault.platform.v1.UpdateWalletRequest'
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/mpcvault.platform.v1.UpdateWalletResponse'
components:
  schemas:
    mpcvault.platform.v1.UpdateWalletRequest:
      type: object
      required:
        - address
      properties:
        address:
          type: string
          title: address
          description: The on-chain address of the wallet to update.
          example: 0x71C7656EC7ab88bd32g47dgdhhssq245f6d8976F
        name:
          type: string
          title: name
          description: The wallet's new name, 1-85 characters. Empty means no change.
          example: my wallet
        status:
          type: string
          title: status
          description: >-
            The wallet's new status. Empty means no change. Supports
            STATUS_ACTIVE and STATUS_ARCHIVED: use STATUS_ARCHIVED to archive a
            wallet, and STATUS_ACTIVE to unarchive an archived wallet.
          example: STATUS_ACTIVE
      additionalProperties: false
    mpcvault.platform.v1.UpdateWalletResponse:
      type: object
      properties:
        details:
          $ref: '#/components/schemas/mpcvault.platform.v1.Wallet'
        error:
          $ref: '#/components/schemas/mpcvault.platform.v1.Error'
      additionalProperties: false
    mpcvault.platform.v1.Wallet:
      type: object
      properties:
        vaultUuid:
          type: string
          title: vault_uuid
          description: The UUID of the vault the wallet belongs to.
          example: 9f5ee5fb-07f5-470c-a2ff-081e2d6d107a
        keyType:
          $ref: '#/components/schemas/mpcvault.platform.v1.KeyType'
          description: The signature algorithm of the wallet's key.
          example: KEY_TYPE_ECC_ED25519
        keyPath:
          type: string
          title: key_path
          description: The derivation path of the wallet's key.
          example: path/to/key
        publicKey:
          type: string
          title: public_key
          format: byte
          description: The wallet's public key, base64-encoded.
          example: aSDinaTvuI8gbWludGxpZnk=
        networkType:
          $ref: '#/components/schemas/mpcvault.platform.v1.NetworkType'
          description: The network the wallet is on.
          example: NETWORK_TYPE_EVM
        address:
          type: string
          title: address
          description: The wallet's on-chain address.
          example: 0x71C7656EC7ab88bd32g47dgdhhssq245f6d8976F
        ref:
          type: string
          title: ref
          description: The customer-defined reference for the wallet.
          example: '0x4321567890abcdef4321567890abcdef123456'
        status:
          $ref: '#/components/schemas/mpcvault.platform.v1.Wallet.Status'
          description: >-
            The wallet's current status: STATUS_PENDING, STATUS_ACTIVE, or
            STATUS_ARCHIVED.
          example: STATUS_ACTIVE
        name:
          type: string
          title: name
          description: The wallet's name.
          example: test wallet
      additionalProperties: false
    mpcvault.platform.v1.Error:
      type: object
      allOf:
        - properties:
            message:
              type: string
              title: message
        - oneOf:
            - type: object
              properties:
                executeSigningRequestsErrorCode:
                  $ref: >-
                    #/components/schemas/mpcvault.platform.v1.ExecuteSigningRequestsErrorCode
              title: execute_signing_requests_error_code
              required:
                - executeSigningRequestsErrorCode
            - type: object
              properties:
                serviceErrorCode:
                  $ref: '#/components/schemas/mpcvault.platform.v1.ServiceErrorCode'
              title: service_error_code
              required:
                - serviceErrorCode
      additionalProperties: false
    mpcvault.platform.v1.KeyType:
      type: string
      title: KeyType
      enum:
        - KEY_TYPE_UNSPECIFIED
        - KEY_TYPE_ECC_SECP256K1
        - KEY_TYPE_ECC_ED25519
    mpcvault.platform.v1.NetworkType:
      type: string
      title: NetworkType
      enum:
        - NETWORK_TYPE_UNKNOWN
        - NETWORK_TYPE_EVM
        - NETWORK_TYPE_BITCOIN
        - NETWORK_TYPE_TRON
        - NETWORK_TYPE_APTOS
        - NETWORK_TYPE_SUI
        - NETWORK_TYPE_SOLANA
        - NETWORK_TYPE_TON
        - NETWORK_TYPE_STELLAR
    mpcvault.platform.v1.Wallet.Status:
      type: string
      title: Status
      enum:
        - STATUS_UNSPECIFIED
        - STATUS_PENDING
        - STATUS_ACTIVE
        - STATUS_ARCHIVED
    mpcvault.platform.v1.ExecuteSigningRequestsErrorCode:
      type: string
      title: ExecuteSigningRequestsErrorCode
      enum:
        - EXECUTE_SIGNING_REQUESTS_ERROR_CODE_UNSPECIFIED
        - EXECUTE_SIGNING_REQUESTS_ERROR_CODE_INSUFFICIENT_FUNDS
        - EXECUTE_SIGNING_REQUESTS_ERROR_CODE_ALREADY_DENIED
    mpcvault.platform.v1.ServiceErrorCode:
      type: string
      title: ServiceErrorCode
      enum:
        - SERVICE_ERROR_CODE_UNSPECIFIED
        - SERVICE_ERROR_CODE_ORG_SUBSCRIBED_PLAN_LIMIT_EXCEED
        - SERVICE_ERROR_CODE_ORG_SUBSCRIBED_PLAN_EXPIRED
        - SERVICE_ERROR_CODE_ORG_SUBSCRIBED_PLAN_NOT_SUPPORT
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-mtoken
      description: Your API token. Required for all API requests.

````