Update Record
http
PUT /dns/{domain}/records/{id}
Partial updates are supported: send only the fields you want to change. The response is the record as stored, with a new id when its name, type or content changed. ttl sets the TTL of every record with the recordโs name and type. 404 when the record isnโt on the domain (or has changed since its id was read), 422 when the changed record isnโt valid.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | No | New record name |
| type | string | No | New record type |
| content | string | No | New record value |
| ttl | integer | No | New TTL (60-86400) |
Response
json
{
"id": "b81e44c0d2a9f317",
"name": "www.example.com.",
"display_name": "www",
"type": "A",
"content": "5.6.7.8",
"ttl": 300
}