Associate Private Domain with the Organization
PUT /v2/organizations/:guid/private_domains/:private_domain_guid
Request
Route
PUT /v2/organizations/4958bb60-9ab2-4163-9023-e9f0be5b391f/private_domains/6c87f058-3104-4c3a-bd75-f555ed1d3842
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/4958bb60-9ab2-4163-9023-e9f0be5b391f/private_domains/6c87f058-3104-4c3a-bd75-f555ed1d3842" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExOCIsImVtYWlsIjoiZW1haWwtODhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyOTAzODcwMn0.fBCm3p-rE65k0twIXJXYhhQnTw5dgdUsf6-_qJfnNfU" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "4958bb60-9ab2-4163-9023-e9f0be5b391f",
"url": "/v2/organizations/4958bb60-9ab2-4163-9023-e9f0be5b391f",
"created_at": "2015-04-07T19:11:42Z",
"updated_at": null
},
"entity": {
"name": "name-316",
"billing_enabled": false,
"quota_definition_guid": "ae592b3b-487c-489b-ba25-6397339d646a",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/ae592b3b-487c-489b-ba25-6397339d646a",
"spaces_url": "/v2/organizations/4958bb60-9ab2-4163-9023-e9f0be5b391f/spaces",
"domains_url": "/v2/organizations/4958bb60-9ab2-4163-9023-e9f0be5b391f/domains",
"private_domains_url": "/v2/organizations/4958bb60-9ab2-4163-9023-e9f0be5b391f/private_domains",
"users_url": "/v2/organizations/4958bb60-9ab2-4163-9023-e9f0be5b391f/users",
"managers_url": "/v2/organizations/4958bb60-9ab2-4163-9023-e9f0be5b391f/managers",
"billing_managers_url": "/v2/organizations/4958bb60-9ab2-4163-9023-e9f0be5b391f/billing_managers",
"auditors_url": "/v2/organizations/4958bb60-9ab2-4163-9023-e9f0be5b391f/auditors",
"app_events_url": "/v2/organizations/4958bb60-9ab2-4163-9023-e9f0be5b391f/app_events",
"space_quota_definitions_url": "/v2/organizations/4958bb60-9ab2-4163-9023-e9f0be5b391f/space_quota_definitions"
}
}
Headers