Skip to content

Commit bbec7cf

Browse files
authored
Merge pull request #2747 from SzySteve/docs/clone-zone
new: Add documentation for POST domain//clone
2 parents a981718 + 595a13a commit bbec7cf

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/src/data/endpoints/domains.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,25 @@ endpoints:
170170
python: |
171171
import linode
172172
TODO
173+
/domains/$id/clone:
174+
authenticated: true
175+
description: >
176+
Clones the provided Domain into a new Domain. You must provide a new
177+
domain for the cloned domain as Domains must be unique.
178+
methods:
179+
POST:
180+
response: domain
181+
oauth: domains:modify
182+
params:
183+
domain:
184+
description: >
185+
The Domain name for the new Domain.
186+
type: String
187+
value: mynewdomain.com
188+
examples:
189+
curl: |
190+
curl -H "Authorization: Bearer $TOKEN" \
191+
https://$api_root/$version/domains/$domain_id/records
173192
/domains/$id/records:
174193
authenticated: true
175194
description: >

0 commit comments

Comments
 (0)