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/7f2469f2-4c37-420b-b63a-aa4342d88e4c/private_domains/0a821060-9f3b-4250-a147-afdfd6744799

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/7f2469f2-4c37-420b-b63a-aa4342d88e4c/private_domains/0a821060-9f3b-4250-a147-afdfd6744799" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNSIsImVtYWlsIjoiZW1haWwtMjQ0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDd9.KsPcrTOBkIxu5MKhP5mallQa6lEqd5jM9LUULZvkYBI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "7f2469f2-4c37-420b-b63a-aa4342d88e4c",
    "url": "/v2/organizations/7f2469f2-4c37-420b-b63a-aa4342d88e4c",
    "created_at": "2016-03-14T22:30:47Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2241",
    "billing_enabled": false,
    "quota_definition_guid": "f10c04c3-82f1-4fbf-9f0f-6ce1cb5db135",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/f10c04c3-82f1-4fbf-9f0f-6ce1cb5db135",
    "spaces_url": "/v2/organizations/7f2469f2-4c37-420b-b63a-aa4342d88e4c/spaces",
    "domains_url": "/v2/organizations/7f2469f2-4c37-420b-b63a-aa4342d88e4c/domains",
    "private_domains_url": "/v2/organizations/7f2469f2-4c37-420b-b63a-aa4342d88e4c/private_domains",
    "users_url": "/v2/organizations/7f2469f2-4c37-420b-b63a-aa4342d88e4c/users",
    "managers_url": "/v2/organizations/7f2469f2-4c37-420b-b63a-aa4342d88e4c/managers",
    "billing_managers_url": "/v2/organizations/7f2469f2-4c37-420b-b63a-aa4342d88e4c/billing_managers",
    "auditors_url": "/v2/organizations/7f2469f2-4c37-420b-b63a-aa4342d88e4c/auditors",
    "app_events_url": "/v2/organizations/7f2469f2-4c37-420b-b63a-aa4342d88e4c/app_events",
    "space_quota_definitions_url": "/v2/organizations/7f2469f2-4c37-420b-b63a-aa4342d88e4c/space_quota_definitions"
  }
}

Headers

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