Associate Private Domain with the Organization
PUT /v2/organizations/:guid/private_domains/:private_domain_guid
Request
Route
PUT /v2/organizations/de0cbd25-6ae7-43d8-b943-8aac7afa0fc6/private_domains/50152a63-ef4d-4bf1-8142-3e7cb7982367
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/de0cbd25-6ae7-43d8-b943-8aac7afa0fc6/private_domains/50152a63-ef4d-4bf1-8142-3e7cb7982367" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkwIiwiZW1haWwiOiJlbWFpbC02MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYzNjE4NzA2fQ.RKgDUCv5jQNdrdZTs0BbhbGA7CCVkfBUpnph5jCVd-0" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "de0cbd25-6ae7-43d8-b943-8aac7afa0fc6",
"url": "/v2/organizations/de0cbd25-6ae7-43d8-b943-8aac7afa0fc6",
"created_at": "2016-05-12T00:45:06Z",
"updated_at": null
},
"entity": {
"name": "name-115",
"billing_enabled": false,
"quota_definition_guid": "11d3ee68-f897-4207-aff3-1df8e1b30ce2",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/11d3ee68-f897-4207-aff3-1df8e1b30ce2",
"spaces_url": "/v2/organizations/de0cbd25-6ae7-43d8-b943-8aac7afa0fc6/spaces",
"domains_url": "/v2/organizations/de0cbd25-6ae7-43d8-b943-8aac7afa0fc6/domains",
"private_domains_url": "/v2/organizations/de0cbd25-6ae7-43d8-b943-8aac7afa0fc6/private_domains",
"users_url": "/v2/organizations/de0cbd25-6ae7-43d8-b943-8aac7afa0fc6/users",
"managers_url": "/v2/organizations/de0cbd25-6ae7-43d8-b943-8aac7afa0fc6/managers",
"billing_managers_url": "/v2/organizations/de0cbd25-6ae7-43d8-b943-8aac7afa0fc6/billing_managers",
"auditors_url": "/v2/organizations/de0cbd25-6ae7-43d8-b943-8aac7afa0fc6/auditors",
"app_events_url": "/v2/organizations/de0cbd25-6ae7-43d8-b943-8aac7afa0fc6/app_events",
"space_quota_definitions_url": "/v2/organizations/de0cbd25-6ae7-43d8-b943-8aac7afa0fc6/space_quota_definitions"
}
}
Headers