Create a Private Domain owned by the given Organization
POST /v2/private_domains
Request
Route
POST /v2/private_domains
Body
Name |
Description |
Default |
Valid Values |
Example Values |
name
|
The name of the domain.
|
|
|
- example.com
- foo.example.com
|
owning_organization_guid
|
The organization that owns the domain. If not specified, the domain is shared.
|
|
|
|
{
"name": "exmaple.com",
"owning_organization_guid": "42f61508-d057-409a-98e5-dcc110ccb05f"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/private_domains" -d '{
"name": "exmaple.com",
"owning_organization_guid": "42f61508-d057-409a-98e5-dcc110ccb05f"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwNSIsImVtYWlsIjoiZW1haWwtMzAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NTZ9._s03Wj4ZCSLTXWUsEaIk0ebrxU23IUhnqBHa1ITm0Ds" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "41d17674-1145-4c35-bdaa-7299e2ca4b7f",
"url": "/v2/private_domains/41d17674-1145-4c35-bdaa-7299e2ca4b7f",
"created_at": "2015-11-03T00:54:16Z",
"updated_at": null
},
"entity": {
"name": "exmaple.com",
"owning_organization_guid": "42f61508-d057-409a-98e5-dcc110ccb05f",
"owning_organization_url": "/v2/organizations/42f61508-d057-409a-98e5-dcc110ccb05f",
"shared_organizations_url": "/v2/private_domains/41d17674-1145-4c35-bdaa-7299e2ca4b7f/shared_organizations"
}
}
Headers