-
PATCH /api/marketplace-resources/<resource_uuid>/
- Update an existing DNS zone.This endpoint allows you to modify certain attributes of a DNS zone, such as the email address for administrative contacts. You'll need the
resource_uuid
of the DNS zone, which you can obtain from the "List DNS Zone Resources" endpoint (5.2.2).Request Example:
PATCH [https://api.wayscloud.services/api/marketplace-resources/dns_zone_resource_uuid/](https://api.wayscloud.services/api/marketplace-resources/dns_zone_resource_uuid/)
Authorization: Token <your_api_token>
Content-Type: application/json
{
"attributes": {
"email": "[email address removed]"
}
}Request Parameters:
Parameter Description Required attributes
No attributes.email
The updated email address for administrative contacts. No Response Example:
{
"uuid": "dns_zone_resource_uuid",
"name": "example.com.",
"attributes": {
"email": "[email address removed]" // Updated email
},
//... other fields...
}Status Codes:
- 200 OK: The DNS zone was successfully updated.
- 400 Bad Request: The request body contained invalid data.
- 401 Unauthorized: The user making the request is not authorized.
-
404 Not Found: The specified DNS zone
resource_uuid
does not exist.