# PATCH /dns/clients/{address}

First published 22 Oct 2026 (release 0.2.15) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the dns group.

Rename a DNS distribution client

- Who may call it: administrator
- Token scope, any of: dns, all
- Answers: 200 OK

The new label identifies the client in the Clients tab, the zones list and refusal messages. The client supplies its web interface hostname separately. The updated registration retains its key and zones. UrbeStack sends the label change to the other DNS nodes and returns the updated client.

## As a command

- [urbestack-dns-client-set](https://urbestack.com/docs/commands/urbestack-dns-client-set.md): Renames the DNS client at the IPv4 address given by --address.

## Request body

JSON.

- `label` (string, required): Client label consisting of 1 to 64 printable ASCII characters.

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X PATCH "$API/dns/clients/{address}" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "label": "my laptop"
  }'
```

Response, 200 OK:

```
{
  "client": {
    "address": "info@example.com",
    "also_nameservers": [
      "text"
    ],
    "created_at": "2026-09-09T10:15:00Z",
    "created_by": "text",
    "created_on": "text",
    "disconnected_at": "text",
    "hostname": "server.example.com",
    "ipv4": "text",
    "ipv6": "text",
    "joined_at": "text",
    "joining_as": "text",
    "label": "my laptop",
    "last_error": "text",
    "last_seen_at": "text",
    "nameserver": "text",
    "node": true,
    "port": 8443,
    "zones": 1
  }
}
```

## Errors

- 400: --address and --label are required
- 400: Invalid IPv4 address
- 400: Invalid label: 1 to 64 printable ASCII characters
- 401: Authentication required
