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.eyJ1c2VyX2lkIjoidWFhLWlkLTI2IiwiZW1haWwiOiJlbWFpbC0yNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MTM3MzYzfQ.CLhHy-QeJg7laBjXT1rfRH4CdBNtbw89Re5ykNXqCes" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "07b93e76-9fbb-40dc-9132-1b390a6e77c6",
"url": "/v2/shared_domains/07b93e76-9fbb-40dc-9132-1b390a6e77c6",
"created_at": "2015-02-10T01:42:43Z",
"updated_at": null
},
"entity": {
"name": "example.com"
}
}