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

# Perbarui Alamat API: Buku Alamat Travel Rule

> Gunakan endpoint ini untuk memperbarui metadata pemegang atau Travel Address pada entri buku alamat dompet Travel Rule di Didit.



Prompt API untuk Memperbarui Alamat Dompet
        Salin prompt ke papan klip



      
      

\<pre>

\`Update holder metadata on a Travel Rule wallet address book entry.

Endpoint:
PATCH https://verification.didit.me/v3/travel-rule/wallet-addresses/{entry_uuid}/

Authentication:
Use the x-api-key header with my Didit API key. {entry_uuid} comes from the list/create endpoints.

Writable fields (all optional; the response returns them with label, owner_type and the read-only receiving_travel_address):
\{
"holder_name": "Ana Diaz",
"holder_vendor_data": "user-042",
"entity_type": "individual",
"travel_address": "taiwwrTeRpaRbqpQXB9A1JiLtdE686XtYRC316kPuQzbJSTgv7ndnF4ceHM7CReVGuzqcCCu5RfUHdL1FffHhdf3dzQDEgKAUMtAuD6uteY"   // adding one lets outbound BTC, ETH and USDC transfers to this wallet route over TRP
}

The address, chain and is_ownership_verified cannot be patched.
Register a new entry for a different address or chain, and prove ownership via the wallet-ownership widget.

Failure modes:
\- 400 - invalid travel_address ("Invalid travel address.").
\- 404 - unknown or deleted entry.
\- 403 - missing x-api-key (a wrong, revoked or expired key gets 401).

Full guide: /transaction-monitoring/travel-rule#wallet-address-book.`

\</pre>



      
      

Tempel ke



## OpenAPI

````yaml id/openapi-25.json PATCH /v3/travel-rule/wallet-addresses/{entry_uuid}/
openapi: 3.0.0
info:
  version: 3.0.0
  title: Didit Verification API
  description: API Verifikasi Identitas. Lakukan autentikasi dengan header x-api-key.
servers:
  - url: https://verification.didit.me
security: []
tags: []
paths:
  /v3/travel-rule/wallet-addresses/{entry_uuid}/:
    patch:
      tags:
        - Travel Rule
      summary: Perbarui metadata pemegang alamat
      description: >-
        Pembaruan parsial untuk holder_name, holder_vendor_data, entity_type,
        dan travel_address. Menyetel travel_address akan melampirkan alamat
        perutean TRP ke entri tersebut; nilai yang tidak valid akan ditolak
        dengan 400. Respons hanya mengembalikan keempat kolom ini.
      operationId: updateTravelRuleWalletAddress
      parameters:
        - name: entry_uuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WalletAddressEntryUpdate'
            example:
              holder_name: Ana Updated
              travel_address: >-
                ta2ih1MicegQ3JqiKz9xT89KsSuwaDJYw8DgzmeSEp1h9tduJcNDZ5SgKLEHeyGMcS1s2HgbM6undFrMQknhM5aTXw3G9KBzi16hx
      responses:
        '200':
          description: Kolom yang diperbarui.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletAddressEntryUpdate'
        '400':
          description: '`travel_address` bukan Travel Address yang valid.'
          content:
            application/json:
              examples:
                Invalid travel address:
                  value:
                    travel_address:
                      - Invalid travel address.
        '404':
          description: Entri tidak dikenal atau dihapus.
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: >-
            curl -X PATCH
            https://verification.didit.me/v3/travel-rule/wallet-addresses/{entry_uuid}/
            \
              -H 'x-api-key: YOUR_API_KEY' -H 'Content-Type: application/json' \
              -d '{"holder_name": "Ana Updated", "travel_address": "ta2ih1MicegQ3JqiKz9xT89KsSuwaDJYw8DgzmeSEp1h9tduJcNDZ5SgKLEHeyGMcS1s2HgbM6undFrMQknhM5aTXw3G9KBzi16hx"}'
        - lang: python
          label: Python
          source: |-
            from didit import Didit

            # Reads DIDIT_API_KEY.
            client = Didit()

            result = client.travel_rule.wallet_addresses.update(
                "11111111-2222-3333-4444-555555555555",
                holder_name="Ana Updated",
                travel_address="ta2ih1MicegQ3JqiKz9xT89KsSuwaDJYw8DgzmeSEp1h9tduJcNDZ5SgKLEHeyGMcS1s2HgbM6undFrMQknhM5aTXw3G9KBzi16hx",
            )
            print(result)
        - lang: javascript
          label: Node.js
          source: >-
            import Didit from "@didit-protocol/sdk-node";


            // Reads DIDIT_API_KEY.

            const didit = new Didit();


            const result = await
            didit.travelRule.walletAddresses.update("11111111-2222-3333-4444-555555555555",
            {
              holder_name: "Ana Updated",
              travel_address: "ta2ih1MicegQ3JqiKz9xT89KsSuwaDJYw8DgzmeSEp1h9tduJcNDZ5SgKLEHeyGMcS1s2HgbM6undFrMQknhM5aTXw3G9KBzi16hx",
            });

            console.log(result);
        - lang: go
          label: Go
          source: "ctx := context.Background()\n// Reads DIDIT_API_KEY.\nclient := didit.NewClient()\n\nresult, err := client.TravelRule.WalletAddresses.Update(ctx, \"11111111-2222-3333-4444-555555555555\", didit.WalletAddressEntryUpdateParam{\n\tHolderName:    didit.String(\"Ana Updated\"),\n\tTravelAddress: didit.String(\"ta2ih1MicegQ3JqiKz9xT89KsSuwaDJYw8DgzmeSEp1h9tduJcNDZ5SgKLEHeyGMcS1s2HgbM6undFrMQknhM5aTXw3G9KBzi16hx\"),\n})\nif err != nil {\n\tlog.Fatal(err)\n}\nfmt.Printf(\"%+v\\n\", result)"
        - lang: java
          label: Java
          source: >-
            import me.didit.Didit;

            import me.didit.types.WalletAddressEntryUpdate;


            // Reads DIDIT_API_KEY.

            Didit client = new Didit();


            var result =
            client.travelRule().walletAddresses().update("11111111-2222-3333-4444-555555555555",
            WalletAddressEntryUpdate.builder()
                    .holderName("Ana Updated")
                    .travelAddress("ta2ih1MicegQ3JqiKz9xT89KsSuwaDJYw8DgzmeSEp1h9tduJcNDZ5SgKLEHeyGMcS1s2HgbM6undFrMQknhM5aTXw3G9KBzi16hx")
                    .build());
            System.out.println(result);
        - lang: php
          label: PHP
          source: >-
            <?php


            require 'vendor/autoload.php';


            use Didit\DiditClient;


            // Reads DIDIT_API_KEY.

            $didit = new DiditClient();


            $result =
            $didit->travelRule->walletAddresses->update('11111111-2222-3333-4444-555555555555',
            [
                'holder_name' => 'Ana Updated',
                'travel_address' => 'ta2ih1MicegQ3JqiKz9xT89KsSuwaDJYw8DgzmeSEp1h9tduJcNDZ5SgKLEHeyGMcS1s2HgbM6undFrMQknhM5aTXw3G9KBzi16hx',
            ]);

            print_r($result->toArray());
        - lang: ruby
          label: Ruby
          source: |-
            require "didit"

            # Reads DIDIT_API_KEY.
            didit = Didit::Client.new

            result = didit.travel_rule.wallet_addresses.update(
              "11111111-2222-3333-4444-555555555555",
              holder_name: "Ana Updated",
              travel_address: "ta2ih1MicegQ3JqiKz9xT89KsSuwaDJYw8DgzmeSEp1h9tduJcNDZ5SgKLEHeyGMcS1s2HgbM6undFrMQknhM5aTXw3G9KBzi16hx"
            )
            puts result.to_h
        - lang: csharp
          label: .NET
          source: >-
            using System;

            using System.Text.Json;

            using Didit;


            // Reads DIDIT_API_KEY.

            using var client = new DiditClient();


            var result = await
            client.TravelRule.WalletAddresses.UpdateAsync("11111111-2222-3333-4444-555555555555",
            new WalletAddressEntryUpdate

            {
                HolderName = "Ana Updated",
                TravelAddress = "ta2ih1MicegQ3JqiKz9xT89KsSuwaDJYw8DgzmeSEp1h9tduJcNDZ5SgKLEHeyGMcS1s2HgbM6undFrMQknhM5aTXw3G9KBzi16hx",
            });

            Console.WriteLine(JsonSerializer.Serialize(result));
components:
  schemas:
    WalletAddressEntryUpdate:
      type: object
      properties:
        holder_name:
          type: string
          maxLength: 255
        holder_vendor_data:
          type: string
          maxLength: 255
        entity_type:
          type: string
          maxLength: 16
        travel_address:
          type: string
          maxLength: 512
      description: >-
        PATCH adalah pembaruan parsial; respons hanya menampilkan holder_name,
        holder_vendor_data, entity_type, travel_address,
        receiving_travel_address, label, dan owner_type.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Kunci API aplikasi Anda, dari Developers -> API keys di Business
        Console. Kunci utama memiliki akses penuh. Kunci bernama dapat diberi
        cakupan: none, read, atau write per sumber daya, dibatasi pada beberapa
        alur kerja atau pada sesi yang disetujui, pada daftar alamat IP, dan
        pada tanggal kedaluwarsa. 401 berarti kuncinya salah, dicabut, atau
        kedaluwarsa; 403 berarti tidak ada kunci yang dikirimkan, kunci tidak
        memiliki akses ke sumber daya atau tindakan ini, atau permintaan datang
        dari alamat di luar daftar IP-nya; 404 pada rute sesi berarti sesi
        berada di luar alur kerja atau status kunci tersebut. Kunci tanpa akses
        media menerima URL gambar, video, dan PDF sebagai null, dan kunci tanpa
        izin tulis sesi menerima tautan sesi dan token sebagai null. Lihat
        https://docs.didit.me/console/api-keys.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.