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": "85d9ba92-30cc-4d1d-b0fc-7c727edc06f3"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/private_domains" -d '{
"name": "exmaple.com",
"owning_organization_guid": "85d9ba92-30cc-4d1d-b0fc-7c727edc06f3"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ3MCIsImVtYWlsIjoiZW1haWwtMzM3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5Nzd9.jiSfQReWNR0iD8q-bqyax_pXXRJS8KPPow3uCuUfTYw" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "6011e3f2-ddb7-4eb1-9779-fad1947b661c",
"url": "/v2/private_domains/6011e3f2-ddb7-4eb1-9779-fad1947b661c",
"created_at": "2015-11-13T17:02:57Z",
"updated_at": null
},
"entity": {
"name": "exmaple.com",
"owning_organization_guid": "85d9ba92-30cc-4d1d-b0fc-7c727edc06f3",
"owning_organization_url": "/v2/organizations/85d9ba92-30cc-4d1d-b0fc-7c727edc06f3",
"shared_organizations_url": "/v2/private_domains/6011e3f2-ddb7-4eb1-9779-fad1947b661c/shared_organizations"
}
}
Headers