Home
Version 3
Organizations API

Organizations API

Associate Private Domain with the Organization

PUT /v2/organizations/:guid/private_domains/:private_domain_guid

Request

Route

PUT /v2/organizations/537f1b40-cf9c-428a-a5e7-398fc841afce/private_domains/29214902-ee10-4efa-b6ba-52f9bd902dfc

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization
private_domain_guid The guid of the private domain

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2IiwiZW1haWwiOiJlbWFpbC0xN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ4MDM4OTQzfQ.r95i0VQOCBi7j_RP_4vMEqWtbL9HFtUB-axgbx9zN5g
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/537f1b40-cf9c-428a-a5e7-398fc841afce/private_domains/29214902-ee10-4efa-b6ba-52f9bd902dfc" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2IiwiZW1haWwiOiJlbWFpbC0xN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ4MDM4OTQzfQ.r95i0VQOCBi7j_RP_4vMEqWtbL9HFtUB-axgbx9zN5g" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "537f1b40-cf9c-428a-a5e7-398fc841afce",
    "url": "/v2/organizations/537f1b40-cf9c-428a-a5e7-398fc841afce",
    "created_at": "2015-11-13T17:02:23Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-33",
    "billing_enabled": false,
    "quota_definition_guid": "9d0d5798-51a6-4254-be17-f5a7decb70ae",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/9d0d5798-51a6-4254-be17-f5a7decb70ae",
    "spaces_url": "/v2/organizations/537f1b40-cf9c-428a-a5e7-398fc841afce/spaces",
    "domains_url": "/v2/organizations/537f1b40-cf9c-428a-a5e7-398fc841afce/domains",
    "private_domains_url": "/v2/organizations/537f1b40-cf9c-428a-a5e7-398fc841afce/private_domains",
    "users_url": "/v2/organizations/537f1b40-cf9c-428a-a5e7-398fc841afce/users",
    "managers_url": "/v2/organizations/537f1b40-cf9c-428a-a5e7-398fc841afce/managers",
    "billing_managers_url": "/v2/organizations/537f1b40-cf9c-428a-a5e7-398fc841afce/billing_managers",
    "auditors_url": "/v2/organizations/537f1b40-cf9c-428a-a5e7-398fc841afce/auditors",
    "app_events_url": "/v2/organizations/537f1b40-cf9c-428a-a5e7-398fc841afce/app_events",
    "space_quota_definitions_url": "/v2/organizations/537f1b40-cf9c-428a-a5e7-398fc841afce/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1298
X-Content-Type-Options: nosniff