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/d7a391ae-9e69-47e4-b95b-1f1c8463dc1a/private_domains/653361d3-3cfa-45a0-81bd-9881a13231a2

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/d7a391ae-9e69-47e4-b95b-1f1c8463dc1a/private_domains/653361d3-3cfa-45a0-81bd-9881a13231a2" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NiIsImVtYWlsIjoiZW1haWwtMTMyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5Nzl9.Deb0ka31MB1wzsDfZBuYXEnVGeMGN890ZHb2IfOY78U" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "d7a391ae-9e69-47e4-b95b-1f1c8463dc1a",
    "url": "/v2/organizations/d7a391ae-9e69-47e4-b95b-1f1c8463dc1a",
    "created_at": "2016-01-13T17:29:39Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-557",
    "billing_enabled": false,
    "quota_definition_guid": "31413e2d-6ebc-47fe-bd68-f08d3a169d9e",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/31413e2d-6ebc-47fe-bd68-f08d3a169d9e",
    "spaces_url": "/v2/organizations/d7a391ae-9e69-47e4-b95b-1f1c8463dc1a/spaces",
    "domains_url": "/v2/organizations/d7a391ae-9e69-47e4-b95b-1f1c8463dc1a/domains",
    "private_domains_url": "/v2/organizations/d7a391ae-9e69-47e4-b95b-1f1c8463dc1a/private_domains",
    "users_url": "/v2/organizations/d7a391ae-9e69-47e4-b95b-1f1c8463dc1a/users",
    "managers_url": "/v2/organizations/d7a391ae-9e69-47e4-b95b-1f1c8463dc1a/managers",
    "billing_managers_url": "/v2/organizations/d7a391ae-9e69-47e4-b95b-1f1c8463dc1a/billing_managers",
    "auditors_url": "/v2/organizations/d7a391ae-9e69-47e4-b95b-1f1c8463dc1a/auditors",
    "app_events_url": "/v2/organizations/d7a391ae-9e69-47e4-b95b-1f1c8463dc1a/app_events",
    "space_quota_definitions_url": "/v2/organizations/d7a391ae-9e69-47e4-b95b-1f1c8463dc1a/space_quota_definitions"
  }
}

Headers

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