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/67d464dc-d563-4c60-8b69-f013ffb98568/private_domains/6b08ba8c-95fd-41db-80fb-ae33ad0d9990

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYxIiwiZW1haWwiOiJlbWFpbC00NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3NDgwODQzfQ.5DEgUAqtcpSycZXazK_jTUxDu58MxMjlL3U39QNDoIU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/67d464dc-d563-4c60-8b69-f013ffb98568/private_domains/6b08ba8c-95fd-41db-80fb-ae33ad0d9990" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYxIiwiZW1haWwiOiJlbWFpbC00NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3NDgwODQzfQ.5DEgUAqtcpSycZXazK_jTUxDu58MxMjlL3U39QNDoIU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "67d464dc-d563-4c60-8b69-f013ffb98568",
    "url": "/v2/organizations/67d464dc-d563-4c60-8b69-f013ffb98568",
    "created_at": "2015-03-20T18:27:23Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-175",
    "billing_enabled": false,
    "quota_definition_guid": "d1371434-7622-409b-aeff-7609f9ab35a3",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/d1371434-7622-409b-aeff-7609f9ab35a3",
    "spaces_url": "/v2/organizations/67d464dc-d563-4c60-8b69-f013ffb98568/spaces",
    "domains_url": "/v2/organizations/67d464dc-d563-4c60-8b69-f013ffb98568/domains",
    "private_domains_url": "/v2/organizations/67d464dc-d563-4c60-8b69-f013ffb98568/private_domains",
    "users_url": "/v2/organizations/67d464dc-d563-4c60-8b69-f013ffb98568/users",
    "managers_url": "/v2/organizations/67d464dc-d563-4c60-8b69-f013ffb98568/managers",
    "billing_managers_url": "/v2/organizations/67d464dc-d563-4c60-8b69-f013ffb98568/billing_managers",
    "auditors_url": "/v2/organizations/67d464dc-d563-4c60-8b69-f013ffb98568/auditors",
    "app_events_url": "/v2/organizations/67d464dc-d563-4c60-8b69-f013ffb98568/app_events",
    "space_quota_definitions_url": "/v2/organizations/67d464dc-d563-4c60-8b69-f013ffb98568/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 42aab9a0-1ff2-44c5-8dbb-d7475f37c6d2
Content-Length: 1299
X-Content-Type-Options: nosniff