> For the complete documentation index, see [llms.txt](https://docs.ospree.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ospree.io/developers/blockchain-analytics/assign-an-address-to-account-deprecated.md).

# Assign an address to account (Deprecated)

<mark style="color:blue;">`PUT`</mark> `/api/v2/analytics/chains/{chain}/addresses/{address}/assign/{reference_id}`

This endpoint facilitates the linking of an address to an account.

Path Parameters

| Name           | Type   | Description                                                                                                    | Required |
| -------------- | ------ | -------------------------------------------------------------------------------------------------------------- | -------- |
| `chain`        | string | Blockchain network name. Example: <mark style="color:orange;">`bitcoin`</mark>                                 | True     |
| `address`      | string | Unique blockchain identifier. Example: <mark style="color:orange;">`1JjYpRXfPntVEJqAjxsYmvFjjJBdJyaJ2k`</mark> | True     |
| `reference_id` | string | The reference id of the account. Example: <mark style="color:orange;">`orig-002`</mark>                        | True     |

Sample Request

{% tabs %}
{% tab title="REQUEST" %}

```json
curl -X PUT https://sandbox.ospree.io/api/v2/analytics/chains/bitcoin/addresses/bc1qa5wkgaew2dkv56kfvj49j0av5nml45x9ek9hz6/assign/orig-002

-h 'Content-Type: application/json' \
-h 'Accept: application/json' \
-h 'Authorization: ••••••' \
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="RESPONSE" %}

```json
{
    "status": "success",
    "data": {
        "reference_id": "orig-002"
    }
}
```

{% endtab %}
{% endtabs %}
