Create a Shared Domain
POST /v2/shared_domains
Request
Route
POST /v2/shared_domains
Body
Name |
Description |
Default |
Valid Values |
Example Values |
guid
|
The guid of the domain.
|
|
|
|
name
|
The name of the domain.
|
|
|
- example.com
- foo.example.com
|
{
"name": "example.com"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/shared_domains" -d '{
"name": "example.com"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3OSIsImVtYWlsIjoiZW1haWwtMTk2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTJ9.grGvtS6uIkZLJFBV-ehZNP1EEAUkUTskAJyXrWljud0" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "a0939fa3-71bc-4761-9c8b-c7762f294cfc",
"url": "/v2/shared_domains/a0939fa3-71bc-4761-9c8b-c7762f294cfc",
"created_at": "2015-07-06T23:23:12Z",
"updated_at": null
},
"entity": {
"name": "example.com"
}
}
Headers