Open Context Protocol is live! 🚀 Read the launch post
updateDnsDomainRecord

updateDnsDomainRecord

Update Record

Details

  • Method: PATCH
  • Path: /domains/{dns-domain}/records/{record-id}
  • Operation ID: update-dns-domain-record

Parameters

{
  "name": {
    "description": "The hostname for this DNS record.",
    "required": false,
    "location": "body",
    "type": "string"
  },
  "data": {
    "description": "The DNS data for this record type.",
    "required": false,
    "location": "body",
    "type": "string"
  },
  "ttl": {
    "description": "Time to Live in seconds.",
    "required": false,
    "location": "body",
    "type": "integer"
  },
  "priority": {
    "description": "DNS priority. Does not apply to all record types.",
    "required": false,
    "location": "body",
    "type": "integer"
  }
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('vultr')

# Call this tool
result = await agent.call_tool('updateDnsDomainRecord', {
    # Add required parameters here
})