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": "d7219155-9bb1-45ab-9e43-96caefb3333c"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/private_domains" -d '{
"name": "exmaple.com",
"owning_organization_guid": "d7219155-9bb1-45ab-9e43-96caefb3333c"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MyIsImVtYWlsIjoiZW1haWwtMTk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTJ9.IkF6Ti6-xH5_8uvQ6QqdDVKH1Qvwi5BzzwnFf5tUmHE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "9b2e74c6-3885-4a1c-b232-9f7ff9b544fe",
"url": "/v2/private_domains/9b2e74c6-3885-4a1c-b232-9f7ff9b544fe",
"created_at": "2015-10-13T17:31:52Z",
"updated_at": null
},
"entity": {
"name": "exmaple.com",
"owning_organization_guid": "d7219155-9bb1-45ab-9e43-96caefb3333c",
"owning_organization_url": "/v2/organizations/d7219155-9bb1-45ab-9e43-96caefb3333c",
"shared_organizations_url": "/v2/private_domains/9b2e74c6-3885-4a1c-b232-9f7ff9b544fe/shared_organizations"
}
}
Headers