pydo.domains.update_record()

Generated on 18 Jun 2025 from pydo version v0.11.0

Description

To update an existing record, send a PUT request to /v2/domains/$DOMAIN_NAME/records/$DOMAIN_RECORD_ID. Any attribute valid for the record type can be set to a new value for the record.

See the attribute table for details regarding record types and their respective attributes.

Parameters

Name Type Required Description Default Value
domain_name string True The name of the domain itself.
domain_record_id integer True The unique identifier of the domain record.
body JSON or IO[bytes] False

Request Sample

import os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

req = {
  "name": "blog",
  "type": "CNAME"
}

resp = client.domains.update_record(domain_name="example.com", domain_record_id=2432342, body=req)

More Information

See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.