Create or replace a zone profile
eurodns_dns_save_zone_profileCreate a new DNS zone profile or replace an existing one by submitting the complete profile. Omitted records are dropped, so fetch the current profile first when updating.
Instructions
Creates a zone profile when id is omitted, or replaces the profile with that id in its entirety, and returns the saved profile. Records absent from the submitted document are dropped, so start from eurodns_dns_get_zone_profile when updating; eurodns_dns_check_zone_profile validates a candidate first without saving.
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. |