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/31a340cc-ab0e-4e95-9b35-4c22b57d692e/private_domains/69eb6b0c-1dbc-4c9b-85f8-a441070e565e

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/31a340cc-ab0e-4e95-9b35-4c22b57d692e/private_domains/69eb6b0c-1dbc-4c9b-85f8-a441070e565e" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMiIsImVtYWlsIjoiZW1haWwtMjQzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNTB9.dQm_6sRvAdGgykPwJ936p7htoBn1zsl_NEZ3BfARSxI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "31a340cc-ab0e-4e95-9b35-4c22b57d692e",
    "url": "/v2/organizations/31a340cc-ab0e-4e95-9b35-4c22b57d692e",
    "created_at": "2015-04-15T00:55:50Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1966",
    "billing_enabled": false,
    "quota_definition_guid": "0420649d-7ec5-4c94-a49c-3dfc69e79460",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/0420649d-7ec5-4c94-a49c-3dfc69e79460",
    "spaces_url": "/v2/organizations/31a340cc-ab0e-4e95-9b35-4c22b57d692e/spaces",
    "domains_url": "/v2/organizations/31a340cc-ab0e-4e95-9b35-4c22b57d692e/domains",
    "private_domains_url": "/v2/organizations/31a340cc-ab0e-4e95-9b35-4c22b57d692e/private_domains",
    "users_url": "/v2/organizations/31a340cc-ab0e-4e95-9b35-4c22b57d692e/users",
    "managers_url": "/v2/organizations/31a340cc-ab0e-4e95-9b35-4c22b57d692e/managers",
    "billing_managers_url": "/v2/organizations/31a340cc-ab0e-4e95-9b35-4c22b57d692e/billing_managers",
    "auditors_url": "/v2/organizations/31a340cc-ab0e-4e95-9b35-4c22b57d692e/auditors",
    "app_events_url": "/v2/organizations/31a340cc-ab0e-4e95-9b35-4c22b57d692e/app_events",
    "space_quota_definitions_url": "/v2/organizations/31a340cc-ab0e-4e95-9b35-4c22b57d692e/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6b4edbd5-ffcd-4b68-a840-cf1e1f5b1fe5
Content-Length: 1300
X-Content-Type-Options: nosniff