creates a shared domain (deprecated)
POST /v2/domains
Request
Route
POST /v2/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
|
wildcard
|
Allow routes with non-empty hosts
|
|
|
|
owning_organization_guid
|
The organization that owns the domain. If not specified, the domain is shared.
|
|
|
|
{
"name": "example.com",
"wildcard": true
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/domains" -d '{
"name": "example.com",
"wildcard": true
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3IiwiZW1haWwiOiJlbWFpbC0yNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODQ1fQ.pJUJXsQw17IBq0HZi6W5fzO3z-cgnsjzkCZGvlVSm6o" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "49de622c-ab40-43b0-9454-b958495d2757",
"url": "/v2/domains/49de622c-ab40-43b0-9454-b958495d2757",
"created_at": "2015-06-16T23:40:45Z",
"updated_at": null
},
"entity": {
"name": "example.com",
"owning_organization_guid": null,
"shared_organizations": [
]
}
}
Headers