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/d5798672-037d-4287-854b-639843cb4587/private_domains/283041ad-b98b-4953-910f-79f510ea5ce2

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/d5798672-037d-4287-854b-639843cb4587/private_domains/283041ad-b98b-4953-910f-79f510ea5ce2" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3NiIsImVtYWlsIjoiZW1haWwtMjc5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyODN9.ruOxLPBPj5JTbFKrrXjb_vzaMeGlf8dLax9B5adu1tM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "d5798672-037d-4287-854b-639843cb4587",
    "url": "/v2/organizations/d5798672-037d-4287-854b-639843cb4587",
    "created_at": "2016-01-19T19:41:23Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2432",
    "billing_enabled": false,
    "quota_definition_guid": "cf5b8708-6214-47d6-82d6-89c9d0b86c03",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/cf5b8708-6214-47d6-82d6-89c9d0b86c03",
    "spaces_url": "/v2/organizations/d5798672-037d-4287-854b-639843cb4587/spaces",
    "domains_url": "/v2/organizations/d5798672-037d-4287-854b-639843cb4587/domains",
    "private_domains_url": "/v2/organizations/d5798672-037d-4287-854b-639843cb4587/private_domains",
    "users_url": "/v2/organizations/d5798672-037d-4287-854b-639843cb4587/users",
    "managers_url": "/v2/organizations/d5798672-037d-4287-854b-639843cb4587/managers",
    "billing_managers_url": "/v2/organizations/d5798672-037d-4287-854b-639843cb4587/billing_managers",
    "auditors_url": "/v2/organizations/d5798672-037d-4287-854b-639843cb4587/auditors",
    "app_events_url": "/v2/organizations/d5798672-037d-4287-854b-639843cb4587/app_events",
    "space_quota_definitions_url": "/v2/organizations/d5798672-037d-4287-854b-639843cb4587/space_quota_definitions"
  }
}

Headers

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