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": "4bf90b40-3012-48bd-b3a8-a88f36679f5d"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/private_domains" -d '{
"name": "exmaple.com",
"owning_organization_guid": "4bf90b40-3012-48bd-b3a8-a88f36679f5d"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyMiIsImVtYWlsIjoiZW1haWwtMzEyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MjB9.sDcs2C3yBaTSI_iRwW2KFJRUxQaeZWdvxKDoIqPTz4Q" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "805b5058-ac48-4de0-acf0-7a01e018ef90",
"url": "/v2/private_domains/805b5058-ac48-4de0-acf0-7a01e018ef90",
"created_at": "2015-08-31T21:50:20Z",
"updated_at": null
},
"entity": {
"name": "exmaple.com",
"owning_organization_guid": "4bf90b40-3012-48bd-b3a8-a88f36679f5d",
"owning_organization_url": "/v2/organizations/4bf90b40-3012-48bd-b3a8-a88f36679f5d",
"shared_organizations_url": "/v2/private_domains/805b5058-ac48-4de0-acf0-7a01e018ef90/shared_organizations"
}
}
Headers