Create 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.eyJ1c2VyX2lkIjoidWFhLWlkLTg3IiwiZW1haWwiOiJlbWFpbC01NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzMzEwOTczfQ.IOmD1KekB2H28zSZpx4rEt3RZM498Cw-5EXduz1TugY" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "6c18b75e-17e3-48c7-9804-c9c6d5bdd062",
"url": "/v2/domains/6c18b75e-17e3-48c7-9804-c9c6d5bdd062",
"created_at": "2016-01-13T17:29:33Z",
"updated_at": null
},
"entity": {
"name": "example.com",
"owning_organization_guid": null,
"shared_organizations": [
]
}
}
Headers