Zum Inhalt springen

Command: stamp a template onto the zone ($domain substituted; overwrite resolves same-key collisions only).

POST
/zones/{zoneId}/apply-template
curl --request POST \
--url https://example.com/api/v1/zones/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/apply-template \
--header 'Content-Type: application/json' \
--cookie dnse_session=<dnse_session> \
--data '{ "templateId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "overwrite": false }'
zoneId
required
string format: uuid
Media typeapplication/json
object
templateId
required
string format: uuid
overwrite
boolean

What was applied and what conflicted.

Media typeapplication/json
object
applied
Array<string>
conflicts
Array<object>
object
name
string
type
string
kind
string
Allowed values: exists rule
reason
string
Example
{
"conflicts": [
{
"kind": "exists"
}
]
}

Resource not found.

Media typeapplication/json
object
error
required
string
Examplegenerated
{
"error": "example"
}