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

# Edit Address: POST /dac/v1/edit-address Label and Config

> Update the label, omnibus pool membership, or auto_refill gas setting for an existing Finrock deposit address. Only fields you pass are changed.

The Edit Address endpoint lets you update the metadata and configuration of an existing deposit address. You can rename the address label, change whether the address participates in the omnibus pool, or toggle automatic gas refilling from your Gas Tank. Only the fields you explicitly include in the request body are updated — omitting a field leaves it unchanged.

## Request

<ParamField header="x-api-key" type="string" required>
  Your Finrock API key.
</ParamField>

<ParamField header="Authorization" type="string" required>
  Your JWT bearer token in the format `Bearer {JWT}`.
</ParamField>

<ParamField body="asset" type="string" required>
  The asset associated with the address you want to edit. Use the `asset_name` value from the [Supported Assets](/api-reference/utilities/supported-assets) list.
</ParamField>

<ParamField body="address" type="string" required>
  The blockchain address string you want to update.
</ParamField>

<ParamField body="address_tag" type="string" required>
  The destination tag or memo associated with the address. Required for uniquely identifying addresses on tag-based blockchains (e.g. XRP, XLM). Pass an empty string for chains that do not use address tags.
</ParamField>

<ParamField body="label" type="string">
  A new human-readable label for the address. Omit this field to leave the existing label unchanged.
</ParamField>

<ParamField body="omnibus" type="boolean">
  Set to `true` to add the address to the omnibus pool, or `false` to make it isolated. This field is **only updated when you explicitly pass `true` or `false`** — omitting it leaves the current value intact.
</ParamField>

<ParamField body="auto_refill" type="boolean">
  Set to `true` to enable automatic gas refilling from the Gas Tank, or `false` to disable it. This field is **only updated when you explicitly pass `true` or `false`** — omitting it leaves the current value intact.
</ParamField>

## Example Request

```bash cURL theme={null}
curl --request POST \
     --url https://api.finrock.io/dac/v1/edit-address \
     --header 'Authorization: Bearer {JWT}' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --header 'x-api-key: YOUR_API_KEY' \
     --data '{
       "asset": "ETH",
       "address": "0xC3d4E5f6A7b8C9d0E1f2A3b4C5d6E7f8A9b0C1d2",
       "address_tag": "",
       "label": "customer-deposit-42-renamed",
       "auto_refill": true
     }'
```

## Response

A successful request returns HTTP `200` with the updated address object.

<ResponseField name="address" type="string">
  The blockchain address that was updated.
</ResponseField>

<ResponseField name="address_tag" type="string">
  The destination tag or memo for the address.
</ResponseField>

<ResponseField name="label" type="string">
  The updated label for the address.
</ResponseField>

<ResponseField name="omnibus" type="boolean">
  The current omnibus pool membership status after the update.
</ResponseField>

<ResponseField name="auto_refill" type="boolean">
  The current auto-refill status after the update.
</ResponseField>

```json Sample 200 Response theme={null}
{
  "address": "0xC3d4E5f6A7b8C9d0E1f2A3b4C5d6E7f8A9b0C1d2",
  "address_tag": "",
  "label": "customer-deposit-42-renamed",
  "omnibus": false,
  "auto_refill": true
}
```

<ResponseField name="401" type="object">
  Returned when the `x-api-key` or `Authorization` header is missing or invalid.
</ResponseField>

```json Sample 401 Response theme={null}
{
  "error": "Unauthorized",
  "message": "Invalid or missing authentication credentials."
}
```

<Info>
  To change only the label, include `asset`, `address`, `address_tag`, and `label` in the body. Omit `omnibus` and `auto_refill` entirely — sending those fields as `null` may produce unexpected behaviour.
</Info>
