Create or replace a zone profile
eurodns_dns_save_zone_profileCreate a new DNS zone profile or replace an existing one. Replacing drops any records absent from the submitted body, so send the complete profile. Validate first to catch problems before saving.
Instructions
Creates a zone profile from body when id is omitted, or replaces the profile with that id in its entirety, and returns the saved profile. On a replace every record absent from body is dropped, so start from what eurodns_dns_get_zone_profile returned rather than from a partial document. Validate a candidate first with eurodns_dns_check_zone_profile, whose report names the offending record where a rejected save only answers 400. Record values go in rdata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Numeric id of the profile to replace, from eurodns_dns_get_zone_profile. Omit it to create a new profile. | |
| body | Yes | The profile: a name plus the records, urlForwards and mailForwards the template applies. When replacing, send the complete profile as eurodns_dns_get_zone_profile returned it — anything left out is dropped. Record values go in rdata. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Response body as returned by the API. | |
| status | Yes | Upstream HTTP status code. |