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

# Update a registered blockchain address

> Changes a registered address, addressed by its id. Use it either to change the status, or to replace the address, its asset, or the account alias it belongs to. Send only the fields you want to change.



## OpenAPI

````yaml https://sandbox-api.borderless.xyz/v1/api-json put /v1/mastercard/crypto-credential/crypto-addresses/{cryptoAddressId}
openapi: 3.0.0
info:
  title: Borderless API
  description: The Borderless API documentation.
  version: '1.0'
  contact: {}
servers:
  - url: https://sandbox-api.borderless.xyz
security: []
tags: []
paths:
  /v1/mastercard/crypto-credential/crypto-addresses/{cryptoAddressId}:
    put:
      tags:
        - Mastercard Crypto Credential
      summary: Update a registered blockchain address
      description: >-
        Changes a registered address, addressed by its id. Use it either to
        change the status, or to replace the address, its asset, or the account
        alias it belongs to. Send only the fields you want to change.
      operationId: CryptoCredentialController_updateCryptoAddress
      parameters:
        - name: cryptoAddressId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CryptoCredentialUpdateAddressDto'
      responses:
        '204':
          description: Crypto address updated successfully.
      security:
        - bearer: []
components:
  schemas:
    CryptoCredentialUpdateAddressDto:
      type: object
      properties:
        accountAlias:
          type: string
          maxLength: 255
          description: >-
            Move the address to a different account by sending that account's
            alias.
          example: user@example.com
        address:
          type: string
          minLength: 10
          maxLength: 255
          description: Replace the registered blockchain address with this one.
          example: '0x46Be1B5b35708e369b943CE6094c6f0484d480A7'
        asset:
          description: Replace the token tied to a specific blockchain held at the address.
          example: USDC_POLYGON
          allOf:
            - $ref: '#/components/schemas/AssetId'
        status:
          description: >-
            The status of the address. Suspending it stops the address from
            resolving; to retire it permanently use the delete endpoint instead.
          example: Suspended
          allOf:
            - $ref: '#/components/schemas/CryptoCredentialAccountStatus'
    AssetId:
      type: string
      enum:
        - POL
        - USDT_POLYGON
        - USDC_POLYGON
        - SBC_POLYGON
        - ETH
        - USDT_ETHEREUM
        - USDC_ETHEREUM
        - PYUSD_ETHEREUM
        - DAI_ETHEREUM
        - EURC_ETHEREUM
        - SBC_ETHEREUM
        - TRX
        - USDT_TRON
        - SBC_TRON
        - ETH_BASE
        - USDC_BASE
        - USDB_BASE
        - EURC_BASE
        - SBC_BASE
        - ETH_OPTIMISM
        - USDT_OPTIMISM
        - USDC_OPTIMISM
        - BTC
        - CELO
        - CUSD_CELO
        - USDC_CELO
        - SBC_CELO
        - SOL
        - USDC_SOLANA
        - USDT_SOLANA
        - PYUSD_SOLANA
        - USDP_SOLANA
        - EURC_SOLANA
        - SBC_SOLANA
    CryptoCredentialAccountStatus:
      type: string
      enum:
        - Active
        - Suspended
        - Decommissioned
      description: >-
        The status of the alias. Only an active alias should be treated as safe
        to send funds to. Absent when the alias could not be resolved.
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````