Associate Private Domain with the Organization
PUT /v2/organizations/:guid/private_domains/:private_domain_guid
Request
Route
PUT /v2/organizations/a1d758a5-e2c7-4f10-b8da-6b260b7d0476/private_domains/5bd21d4c-0602-4a5f-a7f5-047be403a1bd
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/a1d758a5-e2c7-4f10-b8da-6b260b7d0476/private_domains/5bd21d4c-0602-4a5f-a7f5-047be403a1bd" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExMCIsImVtYWlsIjoiZW1haWwtNThAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MTY2MjU5N30.MdSu0Nclqu3wXT2OvYpkbfWf9eyxdHJxCXcvNDwSgUM" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "a1d758a5-e2c7-4f10-b8da-6b260b7d0476",
"url": "/v2/organizations/a1d758a5-e2c7-4f10-b8da-6b260b7d0476",
"created_at": "2015-08-31T21:49:57Z",
"updated_at": null
},
"entity": {
"name": "name-318",
"billing_enabled": false,
"quota_definition_guid": "4a09dfff-e8ec-47f1-be85-3430835594c2",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/4a09dfff-e8ec-47f1-be85-3430835594c2",
"spaces_url": "/v2/organizations/a1d758a5-e2c7-4f10-b8da-6b260b7d0476/spaces",
"domains_url": "/v2/organizations/a1d758a5-e2c7-4f10-b8da-6b260b7d0476/domains",
"private_domains_url": "/v2/organizations/a1d758a5-e2c7-4f10-b8da-6b260b7d0476/private_domains",
"users_url": "/v2/organizations/a1d758a5-e2c7-4f10-b8da-6b260b7d0476/users",
"managers_url": "/v2/organizations/a1d758a5-e2c7-4f10-b8da-6b260b7d0476/managers",
"billing_managers_url": "/v2/organizations/a1d758a5-e2c7-4f10-b8da-6b260b7d0476/billing_managers",
"auditors_url": "/v2/organizations/a1d758a5-e2c7-4f10-b8da-6b260b7d0476/auditors",
"app_events_url": "/v2/organizations/a1d758a5-e2c7-4f10-b8da-6b260b7d0476/app_events",
"space_quota_definitions_url": "/v2/organizations/a1d758a5-e2c7-4f10-b8da-6b260b7d0476/space_quota_definitions"
}
}
Headers