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/1b70402b-d2b2-4dba-9a2c-63ba8781385b/private_domains/e80a765f-c0a6-4bbc-89bd-11c523263995

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.eyJ1c2VyX2lkIjoidWFhLWlkLTYwIiwiZW1haWwiOiJlbWFpbC01NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYwNTA2NjM5fQ.1a0jsa3N8ehA_rzaGpxhT9AF1g9x3ZsH3rJY70sV2dE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/1b70402b-d2b2-4dba-9a2c-63ba8781385b/private_domains/e80a765f-c0a6-4bbc-89bd-11c523263995" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYwIiwiZW1haWwiOiJlbWFpbC01NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYwNTA2NjM5fQ.1a0jsa3N8ehA_rzaGpxhT9AF1g9x3ZsH3rJY70sV2dE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "1b70402b-d2b2-4dba-9a2c-63ba8781385b",
    "url": "/v2/organizations/1b70402b-d2b2-4dba-9a2c-63ba8781385b",
    "created_at": "2016-04-06T00:17:19Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-209",
    "billing_enabled": false,
    "quota_definition_guid": "0cc2af6e-b411-4b54-a8d1-c0270b07e146",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/0cc2af6e-b411-4b54-a8d1-c0270b07e146",
    "spaces_url": "/v2/organizations/1b70402b-d2b2-4dba-9a2c-63ba8781385b/spaces",
    "domains_url": "/v2/organizations/1b70402b-d2b2-4dba-9a2c-63ba8781385b/domains",
    "private_domains_url": "/v2/organizations/1b70402b-d2b2-4dba-9a2c-63ba8781385b/private_domains",
    "users_url": "/v2/organizations/1b70402b-d2b2-4dba-9a2c-63ba8781385b/users",
    "managers_url": "/v2/organizations/1b70402b-d2b2-4dba-9a2c-63ba8781385b/managers",
    "billing_managers_url": "/v2/organizations/1b70402b-d2b2-4dba-9a2c-63ba8781385b/billing_managers",
    "auditors_url": "/v2/organizations/1b70402b-d2b2-4dba-9a2c-63ba8781385b/auditors",
    "app_events_url": "/v2/organizations/1b70402b-d2b2-4dba-9a2c-63ba8781385b/app_events",
    "space_quota_definitions_url": "/v2/organizations/1b70402b-d2b2-4dba-9a2c-63ba8781385b/space_quota_definitions"
  }
}

Headers

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