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/00104b9a-34ac-450a-82c1-5fe8add7b608/private_domains/41d5778b-8862-4489-b3d9-9c45286dbaf9

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.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMiIsImVtYWlsIjoiZW1haWwtMTE2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTF9.2Jod0APa5ba8PeMGghyoJ5TPBtL6AqmfKJnSzF7rj-U
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/00104b9a-34ac-450a-82c1-5fe8add7b608/private_domains/41d5778b-8862-4489-b3d9-9c45286dbaf9" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMiIsImVtYWlsIjoiZW1haWwtMTE2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTF9.2Jod0APa5ba8PeMGghyoJ5TPBtL6AqmfKJnSzF7rj-U" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "00104b9a-34ac-450a-82c1-5fe8add7b608",
    "url": "/v2/organizations/00104b9a-34ac-450a-82c1-5fe8add7b608",
    "created_at": "2015-06-16T23:40:51Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-558",
    "billing_enabled": false,
    "quota_definition_guid": "860bdf7d-cbe0-42df-95e6-2fb234e4c0bb",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/860bdf7d-cbe0-42df-95e6-2fb234e4c0bb",
    "spaces_url": "/v2/organizations/00104b9a-34ac-450a-82c1-5fe8add7b608/spaces",
    "domains_url": "/v2/organizations/00104b9a-34ac-450a-82c1-5fe8add7b608/domains",
    "private_domains_url": "/v2/organizations/00104b9a-34ac-450a-82c1-5fe8add7b608/private_domains",
    "users_url": "/v2/organizations/00104b9a-34ac-450a-82c1-5fe8add7b608/users",
    "managers_url": "/v2/organizations/00104b9a-34ac-450a-82c1-5fe8add7b608/managers",
    "billing_managers_url": "/v2/organizations/00104b9a-34ac-450a-82c1-5fe8add7b608/billing_managers",
    "auditors_url": "/v2/organizations/00104b9a-34ac-450a-82c1-5fe8add7b608/auditors",
    "app_events_url": "/v2/organizations/00104b9a-34ac-450a-82c1-5fe8add7b608/app_events",
    "space_quota_definitions_url": "/v2/organizations/00104b9a-34ac-450a-82c1-5fe8add7b608/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 476204f2-45c9-4af5-80a0-53533c3ac460
Content-Length: 1299
X-Content-Type-Options: nosniff