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/76916c50-55f8-44ad-9e5b-7b3a9601bb10/private_domains/f8536d97-0b95-43a8-bb94-fc76163ed81f

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/76916c50-55f8-44ad-9e5b-7b3a9601bb10/private_domains/f8536d97-0b95-43a8-bb94-fc76163ed81f" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNyIsImVtYWlsIjoiZW1haWwtMTUzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODd9.N7SlQTL6AWSgI0IBCduzqQRqDahZV9JIJtpa71mMlI8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "76916c50-55f8-44ad-9e5b-7b3a9601bb10",
    "url": "/v2/organizations/76916c50-55f8-44ad-9e5b-7b3a9601bb10",
    "created_at": "2015-12-22T18:28:07Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-739",
    "billing_enabled": false,
    "quota_definition_guid": "6f049b22-b6d0-4ce2-90f8-2056480564b5",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/6f049b22-b6d0-4ce2-90f8-2056480564b5",
    "spaces_url": "/v2/organizations/76916c50-55f8-44ad-9e5b-7b3a9601bb10/spaces",
    "domains_url": "/v2/organizations/76916c50-55f8-44ad-9e5b-7b3a9601bb10/domains",
    "private_domains_url": "/v2/organizations/76916c50-55f8-44ad-9e5b-7b3a9601bb10/private_domains",
    "users_url": "/v2/organizations/76916c50-55f8-44ad-9e5b-7b3a9601bb10/users",
    "managers_url": "/v2/organizations/76916c50-55f8-44ad-9e5b-7b3a9601bb10/managers",
    "billing_managers_url": "/v2/organizations/76916c50-55f8-44ad-9e5b-7b3a9601bb10/billing_managers",
    "auditors_url": "/v2/organizations/76916c50-55f8-44ad-9e5b-7b3a9601bb10/auditors",
    "app_events_url": "/v2/organizations/76916c50-55f8-44ad-9e5b-7b3a9601bb10/app_events",
    "space_quota_definitions_url": "/v2/organizations/76916c50-55f8-44ad-9e5b-7b3a9601bb10/space_quota_definitions"
  }
}

Headers

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