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/e6575c4f-b091-436f-ac0c-525e6dd1aa47/private_domains/5f590a3e-79c7-4ff8-9b96-37801406dffc

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/e6575c4f-b091-436f-ac0c-525e6dd1aa47/private_domains/5f590a3e-79c7-4ff8-9b96-37801406dffc" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NSIsImVtYWlsIjoiZW1haWwtMjYwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MzF9.B_MJ8KeOVZtfi04mlQEsKEpau6TS38BTdiEwNILoW1w" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "e6575c4f-b091-436f-ac0c-525e6dd1aa47",
    "url": "/v2/organizations/e6575c4f-b091-436f-ac0c-525e6dd1aa47",
    "created_at": "2016-01-26T22:20:31Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2242",
    "billing_enabled": false,
    "quota_definition_guid": "f7dace71-3644-47c4-80a9-9ac779de5473",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/f7dace71-3644-47c4-80a9-9ac779de5473",
    "spaces_url": "/v2/organizations/e6575c4f-b091-436f-ac0c-525e6dd1aa47/spaces",
    "domains_url": "/v2/organizations/e6575c4f-b091-436f-ac0c-525e6dd1aa47/domains",
    "private_domains_url": "/v2/organizations/e6575c4f-b091-436f-ac0c-525e6dd1aa47/private_domains",
    "users_url": "/v2/organizations/e6575c4f-b091-436f-ac0c-525e6dd1aa47/users",
    "managers_url": "/v2/organizations/e6575c4f-b091-436f-ac0c-525e6dd1aa47/managers",
    "billing_managers_url": "/v2/organizations/e6575c4f-b091-436f-ac0c-525e6dd1aa47/billing_managers",
    "auditors_url": "/v2/organizations/e6575c4f-b091-436f-ac0c-525e6dd1aa47/auditors",
    "app_events_url": "/v2/organizations/e6575c4f-b091-436f-ac0c-525e6dd1aa47/app_events",
    "space_quota_definitions_url": "/v2/organizations/e6575c4f-b091-436f-ac0c-525e6dd1aa47/space_quota_definitions"
  }
}

Headers

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