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

# Update a custom network

> Updates the specified custom network.



## OpenAPI

````yaml put /organizations/{organizationId}/customNetworks/{networkId}
openapi: 3.0.1
info:
  title: Dashboard API
  description: Dashboard API documentation
  version: 1.0.0
servers:
  - url: https://app.dynamicauth.com/api/v0
  - url: https://app.dynamic.xyz/api/v0
  - url: http://localhost:3333/api/v0
security: []
tags:
  - name: Analytics
  - name: SDK
  - name: Organizations
  - name: Projects
  - name: Environments
  - name: Users
  - name: Invites
  - name: Tokens
  - name: Origins
  - name: Allowlists
  - name: Wallets
  - name: Members
  - name: Sessions
  - name: Settings
  - name: Gates
  - name: Chains
  - name: Exports
  - name: Events
  - name: Webhooks
  - name: Custom Fields
  - name: OrganizationMfaSettings
  - name: CustomHostnames
  - name: TestAccount
  - name: NameServices
  - name: GlobalWallets
  - name: GlobalWalletConnections
  - name: UserApiTokens
  - name: Waas
  - name: WalletConnect
paths:
  /organizations/{organizationId}/customNetworks/{networkId}:
    put:
      tags:
        - Custom Networks
      summary: Update a custom network
      operationId: updateCustomNetwork
      parameters:
        - $ref: '#/components/parameters/organizationId'
        - $ref: '#/components/parameters/networkId'
      requestBody:
        description: Data to update the custom network
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomNetworkRequest'
        required: true
      responses:
        '200':
          description: Custom network updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomNetworkResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: Network not found
        '500':
          $ref: '#/components/responses/InternalServerError'
      security:
        - bearerAuth: []
components:
  parameters:
    organizationId:
      in: path
      name: organizationId
      required: true
      description: ID of organization
      schema:
        $ref: '#/components/schemas/uuid'
    networkId:
      name: networkId
      in: path
      required: true
      description: The unique identifier of the custom network
      schema:
        $ref: '#/components/schemas/uuid'
  schemas:
    CustomNetworkRequest:
      type: object
      required:
        - networkType
        - chainName
        - chainId
        - rpcUrl
        - blockExplorerUrl
        - iconUrl
        - nativeCurrencyName
        - nativeCurrencySymbol
        - nativeCurrencyIconUrl
        - nativeCurrencyDecimals
      properties:
        networkType:
          $ref: '#/components/schemas/ChainEnum'
        chainName:
          type: string
          pattern: ^(?=\S)[\p{L}\p{N} _.,-]+(?<=\S)$
          maxLength: 100
          description: Name of the custom network
          example: Base Mainnet
        chainId:
          type: string
          pattern: ^[0-9]+$
          maxLength: 100
          description: Chain ID of the network
          example: '8453'
        rpcUrl:
          $ref: '#/components/schemas/NonEmptyUrlWith255MaxLength'
        blockExplorerUrl:
          $ref: '#/components/schemas/NonEmptyUrlWith255MaxLength'
        iconUrl:
          $ref: '#/components/schemas/NonEmptyUrlWith255MaxLength'
        nativeCurrencyName:
          type: string
          pattern: ^(?=\S)[\p{L}\p{N} _.,-]+(?<=\S)$
          maxLength: 100
          description: Full name of the native currency
          example: Ethereum
        nativeCurrencySymbol:
          type: string
          pattern: ^[A-Z0-9]{1,10}$
          maxLength: 100
          description: Symbol of the native currency
          example: ETH
        nativeCurrencyIconUrl:
          $ref: '#/components/schemas/NonEmptyUrlWith255MaxLength'
        nativeCurrencyDecimals:
          type: number
          minimum: 0
          maximum: 18
          description: Number of decimals for the native currency
          example: 18
    CustomNetworkResponse:
      type: object
      properties:
        customNetwork:
          type: object
          required:
            - id
            - networkType
            - chainName
            - chainId
            - rpcUrl
            - blockExplorerUrl
            - iconUrl
            - nativeCurrencyName
            - nativeCurrencySymbol
            - nativeCurrencyIconUrl
            - nativeCurrencyDecimals
          properties:
            id:
              $ref: '#/components/schemas/uuid'
            networkType:
              $ref: '#/components/schemas/ChainEnum'
            chainName:
              type: string
              pattern: ^(?=\S)[\p{L}\p{N} _.,-]+(?<=\S)$
              maxLength: 100
            chainId:
              type: string
              pattern: ^[0-9]+$
              maxLength: 100
            rpcUrl:
              $ref: '#/components/schemas/NonEmptyUrlWith255MaxLength'
            blockExplorerUrl:
              $ref: '#/components/schemas/NonEmptyUrlWith255MaxLength'
            iconUrl:
              $ref: '#/components/schemas/NonEmptyUrlWith255MaxLength'
            nativeCurrencyName:
              type: string
              pattern: ^(?=\S)[\p{L}\p{N} _.,-]+(?<=\S)$
              maxLength: 100
            nativeCurrencySymbol:
              type: string
              pattern: ^[A-Z0-9]{1,10}$
              maxLength: 100
            nativeCurrencyIconUrl:
              $ref: '#/components/schemas/NonEmptyUrlWith255MaxLength'
            nativeCurrencyDecimals:
              type: number
              minimum: 0
              maximum: 18
    uuid:
      type: string
      pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
      minLength: 36
      maxLength: 36
      example: 95b11417-f18f-457f-8804-68e361f9164f
    ChainEnum:
      type: string
      enum:
        - ETH
        - EVM
        - FLOW
        - SOL
        - ALGO
        - STARK
        - COSMOS
        - BTC
        - ECLIPSE
        - SUI
        - SPARK
        - TRON
        - APTOS
        - TON
        - STELLAR
    NonEmptyUrlWith255MaxLength:
      type: string
      pattern: >-
        ^(https?:\/\/)?[a-z0-9]+([-.]+[a-z0-9]+)*\.[a-z]{2,10}([0-9]{1,5})?(\/.*)?$
      maxLength: 255
      example: https://website-sample.com
    BadRequest:
      type: object
      properties:
        error:
          type: string
    Unauthorized:
      type: object
      properties:
        error:
          type: string
          example: No jwt provided!
    Forbidden:
      type: object
      properties:
        error:
          type: string
          example: Access Forbidden
    InternalServerError:
      type: object
      properties:
        error:
          type: string
          example: Internal Server Error
  responses:
    BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BadRequest'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Unauthorized'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Forbidden'
    InternalServerError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/InternalServerError'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````