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/d42ffe16-da4a-4995-ab65-dd1d3bcdc6cb/private_domains/1089b751-8e8b-4ff0-859b-b7aa27e8c100

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/d42ffe16-da4a-4995-ab65-dd1d3bcdc6cb/private_domains/1089b751-8e8b-4ff0-859b-b7aa27e8c100" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MiIsImVtYWlsIjoiZW1haWwtMTA2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2MzN9.iQml7MpfpOWgRzKNLi4L3In9RYn0QGD_0_Nhj2DxKcw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "d42ffe16-da4a-4995-ab65-dd1d3bcdc6cb",
    "url": "/v2/organizations/d42ffe16-da4a-4995-ab65-dd1d3bcdc6cb",
    "created_at": "2015-05-07T23:37:13Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1217",
    "billing_enabled": false,
    "quota_definition_guid": "7e1a76cc-9842-4fc4-9c7c-8b24f8ad9b33",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/7e1a76cc-9842-4fc4-9c7c-8b24f8ad9b33",
    "spaces_url": "/v2/organizations/d42ffe16-da4a-4995-ab65-dd1d3bcdc6cb/spaces",
    "domains_url": "/v2/organizations/d42ffe16-da4a-4995-ab65-dd1d3bcdc6cb/domains",
    "private_domains_url": "/v2/organizations/d42ffe16-da4a-4995-ab65-dd1d3bcdc6cb/private_domains",
    "users_url": "/v2/organizations/d42ffe16-da4a-4995-ab65-dd1d3bcdc6cb/users",
    "managers_url": "/v2/organizations/d42ffe16-da4a-4995-ab65-dd1d3bcdc6cb/managers",
    "billing_managers_url": "/v2/organizations/d42ffe16-da4a-4995-ab65-dd1d3bcdc6cb/billing_managers",
    "auditors_url": "/v2/organizations/d42ffe16-da4a-4995-ab65-dd1d3bcdc6cb/auditors",
    "app_events_url": "/v2/organizations/d42ffe16-da4a-4995-ab65-dd1d3bcdc6cb/app_events",
    "space_quota_definitions_url": "/v2/organizations/d42ffe16-da4a-4995-ab65-dd1d3bcdc6cb/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2f93e246-017e-4fc3-acc8-864ea6a53552
Content-Length: 1300
X-Content-Type-Options: nosniff