Associate Private Domain with the Organization
PUT /v2/organizations/:guid/private_domains/:private_domain_guid
Request
Route
PUT /v2/organizations/6b06d7b8-f61a-456b-8c56-0426166e7a4c/private_domains/a3532e3b-75c0-469b-bf07-12037cb9e8d2
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Organization
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/organizations/6b06d7b8-f61a-456b-8c56-0426166e7a4c/private_domains/a3532e3b-75c0-469b-bf07-12037cb9e8d2" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NSIsImVtYWlsIjoiZW1haWwtMTA4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDN9.B6k92t8Wy5AuZh128fUNEXZ0CpF0haQ0eLvcUbFgu4U" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "6b06d7b8-f61a-456b-8c56-0426166e7a4c",
"url": "/v2/organizations/6b06d7b8-f61a-456b-8c56-0426166e7a4c",
"created_at": "2015-03-05T19:15:43Z",
"updated_at": null
},
"entity": {
"name": "name-467",
"billing_enabled": false,
"quota_definition_guid": "85cc8070-64a1-4ca4-aca6-7c82096df740",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/85cc8070-64a1-4ca4-aca6-7c82096df740",
"spaces_url": "/v2/organizations/6b06d7b8-f61a-456b-8c56-0426166e7a4c/spaces",
"domains_url": "/v2/organizations/6b06d7b8-f61a-456b-8c56-0426166e7a4c/domains",
"private_domains_url": "/v2/organizations/6b06d7b8-f61a-456b-8c56-0426166e7a4c/private_domains",
"users_url": "/v2/organizations/6b06d7b8-f61a-456b-8c56-0426166e7a4c/users",
"managers_url": "/v2/organizations/6b06d7b8-f61a-456b-8c56-0426166e7a4c/managers",
"billing_managers_url": "/v2/organizations/6b06d7b8-f61a-456b-8c56-0426166e7a4c/billing_managers",
"auditors_url": "/v2/organizations/6b06d7b8-f61a-456b-8c56-0426166e7a4c/auditors",
"app_events_url": "/v2/organizations/6b06d7b8-f61a-456b-8c56-0426166e7a4c/app_events",
"space_quota_definitions_url": "/v2/organizations/6b06d7b8-f61a-456b-8c56-0426166e7a4c/space_quota_definitions"
}
}
Headers