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/b63ad442-4a86-49f3-9a83-7ed40f241906/private_domains/77105699-f5f2-4e1e-a191-218dfd311fc8

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/b63ad442-4a86-49f3-9a83-7ed40f241906/private_domains/77105699-f5f2-4e1e-a191-218dfd311fc8" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExOSIsImVtYWlsIjoiZW1haWwtMTE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4Mzd9.WLMYUjP0uKF99zAtPKwFpvzTIifMoQq0TX2N0-1DpjI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "b63ad442-4a86-49f3-9a83-7ed40f241906",
    "url": "/v2/organizations/b63ad442-4a86-49f3-9a83-7ed40f241906",
    "created_at": "2015-11-03T00:53:57Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-779",
    "billing_enabled": false,
    "quota_definition_guid": "c408a948-b8d0-4017-8516-335d8c6b0ba1",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/c408a948-b8d0-4017-8516-335d8c6b0ba1",
    "spaces_url": "/v2/organizations/b63ad442-4a86-49f3-9a83-7ed40f241906/spaces",
    "domains_url": "/v2/organizations/b63ad442-4a86-49f3-9a83-7ed40f241906/domains",
    "private_domains_url": "/v2/organizations/b63ad442-4a86-49f3-9a83-7ed40f241906/private_domains",
    "users_url": "/v2/organizations/b63ad442-4a86-49f3-9a83-7ed40f241906/users",
    "managers_url": "/v2/organizations/b63ad442-4a86-49f3-9a83-7ed40f241906/managers",
    "billing_managers_url": "/v2/organizations/b63ad442-4a86-49f3-9a83-7ed40f241906/billing_managers",
    "auditors_url": "/v2/organizations/b63ad442-4a86-49f3-9a83-7ed40f241906/auditors",
    "app_events_url": "/v2/organizations/b63ad442-4a86-49f3-9a83-7ed40f241906/app_events",
    "space_quota_definitions_url": "/v2/organizations/b63ad442-4a86-49f3-9a83-7ed40f241906/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7eebd6e5-0ef1-4ecb-9dee-fb75deabc783
Content-Length: 1299
X-Content-Type-Options: nosniff