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": "25bc2c4b-dc99-4e8a-918d-c9d79515ffce"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/private_domains" -d '{
"name": "exmaple.com",
"owning_organization_guid": "25bc2c4b-dc99-4e8a-918d-c9d79515ffce"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExMiIsImVtYWlsIjoiZW1haWwtNzRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNzQ4MDg0NX0.lOQpVSa5kPDGOfUsX41DtMor5dupNRwKFxx8n1t5xPA" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "1c2c7719-8854-41a0-8b34-637359cda523",
"url": "/v2/private_domains/1c2c7719-8854-41a0-8b34-637359cda523",
"created_at": "2015-03-20T18:27:25Z",
"updated_at": null
},
"entity": {
"name": "exmaple.com",
"owning_organization_guid": "25bc2c4b-dc99-4e8a-918d-c9d79515ffce",
"owning_organization_url": "/v2/organizations/25bc2c4b-dc99-4e8a-918d-c9d79515ffce",
"shared_organizations_url": "/v2/private_domains/1c2c7719-8854-41a0-8b34-637359cda523/shared_organizations"
}
}
Headers