Create a Shared Domain
POST /v2/shared_domains
Fields
Name |
Description |
Default |
Valid Values |
Example Values |
guid
|
The guid of the domain.
|
|
|
|
name
|
The name of the domain.
|
|
|
- example.com
- foo.example.com
|
Request
Headers
Route
POST /v2/shared_domains
Body
{
"name": "example.com"
}
cURL
curl "https://api.[your-domain.com]/v2/shared_domains" -d '{
"name": "example.com"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NSIsImVtYWlsIjoiZW1haWwtMTE4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxMzd9.uE35psuo6tHi5abkIhGwjxwBFv1STXWCFhY0HUhascA" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "5dda9ca0-aa9c-4afe-953f-b30a0453402e",
"url": "/v2/shared_domains/5dda9ca0-aa9c-4afe-953f-b30a0453402e",
"created_at": "2014-11-05T01:02:17+00:00",
"updated_at": null
},
"entity": {
"name": "example.com"
}
}