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/6d81db78-f1f9-46d7-93fa-0249894eee8a/private_domains/fcadeec9-6d81-4734-a584-c2d91d7ed73f

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/6d81db78-f1f9-46d7-93fa-0249894eee8a/private_domains/fcadeec9-6d81-4734-a584-c2d91d7ed73f" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyMSIsImVtYWlsIjoiZW1haWwtMzA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDk1MzE1Mzh9.RR4vV_g3PMgAdWmS0-_mJL9izIoMAHSLF64lWT4gMOI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "6d81db78-f1f9-46d7-93fa-0249894eee8a",
    "url": "/v2/organizations/6d81db78-f1f9-46d7-93fa-0249894eee8a",
    "created_at": "2015-11-30T23:38:58Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2493",
    "billing_enabled": false,
    "quota_definition_guid": "09f9b099-4f5d-44e7-8c0f-57f481fabe51",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/09f9b099-4f5d-44e7-8c0f-57f481fabe51",
    "spaces_url": "/v2/organizations/6d81db78-f1f9-46d7-93fa-0249894eee8a/spaces",
    "domains_url": "/v2/organizations/6d81db78-f1f9-46d7-93fa-0249894eee8a/domains",
    "private_domains_url": "/v2/organizations/6d81db78-f1f9-46d7-93fa-0249894eee8a/private_domains",
    "users_url": "/v2/organizations/6d81db78-f1f9-46d7-93fa-0249894eee8a/users",
    "managers_url": "/v2/organizations/6d81db78-f1f9-46d7-93fa-0249894eee8a/managers",
    "billing_managers_url": "/v2/organizations/6d81db78-f1f9-46d7-93fa-0249894eee8a/billing_managers",
    "auditors_url": "/v2/organizations/6d81db78-f1f9-46d7-93fa-0249894eee8a/auditors",
    "app_events_url": "/v2/organizations/6d81db78-f1f9-46d7-93fa-0249894eee8a/app_events",
    "space_quota_definitions_url": "/v2/organizations/6d81db78-f1f9-46d7-93fa-0249894eee8a/space_quota_definitions"
  }
}

Headers

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