Skip to content

Commit 78e2069

Browse files
author
Steve Szyszkiewicz
committed
new: Add documentation for POST domain//clone
1 parent d698580 commit 78e2069

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
@@ -167,6 +167,25 @@ endpoints:
167167
python: |
168168
import linode
169169
TODO
170+
/domains/$id/clone:
171+
authenticated: true
172+
description: >
173+
Clones the provided Domain into a new Domain. You must provide a new
174+
domain name (url) for the cloned domain as Domains must be unique.
175+
methods:
176+
POST:
177+
response: domain
178+
oauth: domains:modify
179+
params:
180+
domain:
181+
description: >
182+
The Domain name for the new Domain.
183+
type: String
184+
value: www.mynewdomain.com
185+
examples:
186+
curl: |
187+
curl -H "Authorization: Bearer $TOKEN" \
188+
https://$api_root/$version/domains/$domain_id/records
170189
/domains/$id/records:
171190
authenticated: true
172191
description: >

0 commit comments

Comments
 (0)