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/89b1b32c-e0a4-4c12-895a-9d24e1bfd9a1/private_domains/472b71a3-8308-49a1-ad5a-c802171c605d

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.eyJ1c2VyX2lkIjoidWFhLWlkLTg1IiwiZW1haWwiOiJlbWFpbC00OUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxMzc0NjI0fQ.GxvI-WS4rYWee2sHaYi4gVNgpof4PgGe2faVqz13mtQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/89b1b32c-e0a4-4c12-895a-9d24e1bfd9a1/private_domains/472b71a3-8308-49a1-ad5a-c802171c605d" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg1IiwiZW1haWwiOiJlbWFpbC00OUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxMzc0NjI0fQ.GxvI-WS4rYWee2sHaYi4gVNgpof4PgGe2faVqz13mtQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "89b1b32c-e0a4-4c12-895a-9d24e1bfd9a1",
    "url": "/v2/organizations/89b1b32c-e0a4-4c12-895a-9d24e1bfd9a1",
    "created_at": "2016-04-16T01:23:44Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-107",
    "billing_enabled": false,
    "quota_definition_guid": "a36f7445-8dff-428f-812c-2e4e149eaf6f",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/a36f7445-8dff-428f-812c-2e4e149eaf6f",
    "spaces_url": "/v2/organizations/89b1b32c-e0a4-4c12-895a-9d24e1bfd9a1/spaces",
    "domains_url": "/v2/organizations/89b1b32c-e0a4-4c12-895a-9d24e1bfd9a1/domains",
    "private_domains_url": "/v2/organizations/89b1b32c-e0a4-4c12-895a-9d24e1bfd9a1/private_domains",
    "users_url": "/v2/organizations/89b1b32c-e0a4-4c12-895a-9d24e1bfd9a1/users",
    "managers_url": "/v2/organizations/89b1b32c-e0a4-4c12-895a-9d24e1bfd9a1/managers",
    "billing_managers_url": "/v2/organizations/89b1b32c-e0a4-4c12-895a-9d24e1bfd9a1/billing_managers",
    "auditors_url": "/v2/organizations/89b1b32c-e0a4-4c12-895a-9d24e1bfd9a1/auditors",
    "app_events_url": "/v2/organizations/89b1b32c-e0a4-4c12-895a-9d24e1bfd9a1/app_events",
    "space_quota_definitions_url": "/v2/organizations/89b1b32c-e0a4-4c12-895a-9d24e1bfd9a1/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f46bd6d9-3442-48d6-86b6-20626819e5a8
Content-Length: 1299
X-Content-Type-Options: nosniff