Associate Private Domain with the Organization
PUT /v2/organizations/:guid/private_domains/:private_domain_guid
Request
Route
PUT /v2/organizations/676f9ff8-8c35-49ed-8ebf-fdf3db34cde7/private_domains/800f661c-030d-4438-a789-aaa328e24b02
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Organization
|
|
|
private_domain_guid
|
The guid of the private domain
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/organizations/676f9ff8-8c35-49ed-8ebf-fdf3db34cde7/private_domains/800f661c-030d-4438-a789-aaa328e24b02" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwNyIsImVtYWlsIjoiZW1haWwtNjdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzODY0MTc5MX0.HLH5a7Uv-YPEOKucT_2rsSq9VVlm3BYFZP_aknIEIYs" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "676f9ff8-8c35-49ed-8ebf-fdf3db34cde7",
"url": "/v2/organizations/676f9ff8-8c35-49ed-8ebf-fdf3db34cde7",
"created_at": "2015-07-27T22:43:10Z",
"updated_at": null
},
"entity": {
"name": "name-228",
"billing_enabled": false,
"quota_definition_guid": "855b0cb8-5c58-4ebc-8189-6582c37060e6",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/855b0cb8-5c58-4ebc-8189-6582c37060e6",
"spaces_url": "/v2/organizations/676f9ff8-8c35-49ed-8ebf-fdf3db34cde7/spaces",
"domains_url": "/v2/organizations/676f9ff8-8c35-49ed-8ebf-fdf3db34cde7/domains",
"private_domains_url": "/v2/organizations/676f9ff8-8c35-49ed-8ebf-fdf3db34cde7/private_domains",
"users_url": "/v2/organizations/676f9ff8-8c35-49ed-8ebf-fdf3db34cde7/users",
"managers_url": "/v2/organizations/676f9ff8-8c35-49ed-8ebf-fdf3db34cde7/managers",
"billing_managers_url": "/v2/organizations/676f9ff8-8c35-49ed-8ebf-fdf3db34cde7/billing_managers",
"auditors_url": "/v2/organizations/676f9ff8-8c35-49ed-8ebf-fdf3db34cde7/auditors",
"app_events_url": "/v2/organizations/676f9ff8-8c35-49ed-8ebf-fdf3db34cde7/app_events",
"space_quota_definitions_url": "/v2/organizations/676f9ff8-8c35-49ed-8ebf-fdf3db34cde7/space_quota_definitions"
}
}
Headers