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": "84f5b8d5-f284-4fb5-8eb5-de75cf339a79"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/private_domains" -d '{
"name": "exmaple.com",
"owning_organization_guid": "84f5b8d5-f284-4fb5-8eb5-de75cf339a79"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NSIsImVtYWlsIjoiZW1haWwtMjY2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MjB9.Jb8qQiqPo3o55uWGpJ0HcGctr6miLugzeSBwYydNjg8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "d55256ed-9e02-4e27-a0e3-0cac536216a5",
"url": "/v2/private_domains/d55256ed-9e02-4e27-a0e3-0cac536216a5",
"created_at": "2015-04-07T19:12:00Z",
"updated_at": null
},
"entity": {
"name": "exmaple.com",
"owning_organization_guid": "84f5b8d5-f284-4fb5-8eb5-de75cf339a79",
"owning_organization_url": "/v2/organizations/84f5b8d5-f284-4fb5-8eb5-de75cf339a79",
"shared_organizations_url": "/v2/private_domains/d55256ed-9e02-4e27-a0e3-0cac536216a5/shared_organizations"
}
}
Headers