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/2994db7e-1511-403f-9a3e-bd5f888fe4c6/private_domains/796ac9c3-449f-455f-9108-cff40a15a0cb

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE5MiIsImVtYWlsIjoiZW1haWwtMTY1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MTZ9.n-_ODPsAOfva0rOG-c5ibRUaKScZaQrJ4vkQ_2FE3ZU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/2994db7e-1511-403f-9a3e-bd5f888fe4c6/private_domains/796ac9c3-449f-455f-9108-cff40a15a0cb" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5MiIsImVtYWlsIjoiZW1haWwtMTY1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MTZ9.n-_ODPsAOfva0rOG-c5ibRUaKScZaQrJ4vkQ_2FE3ZU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "2994db7e-1511-403f-9a3e-bd5f888fe4c6",
    "url": "/v2/organizations/2994db7e-1511-403f-9a3e-bd5f888fe4c6",
    "created_at": "2015-05-15T16:53:36Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-827",
    "billing_enabled": false,
    "quota_definition_guid": "80c776b0-6bd0-4f87-a000-a940f6e91052",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/80c776b0-6bd0-4f87-a000-a940f6e91052",
    "spaces_url": "/v2/organizations/2994db7e-1511-403f-9a3e-bd5f888fe4c6/spaces",
    "domains_url": "/v2/organizations/2994db7e-1511-403f-9a3e-bd5f888fe4c6/domains",
    "private_domains_url": "/v2/organizations/2994db7e-1511-403f-9a3e-bd5f888fe4c6/private_domains",
    "users_url": "/v2/organizations/2994db7e-1511-403f-9a3e-bd5f888fe4c6/users",
    "managers_url": "/v2/organizations/2994db7e-1511-403f-9a3e-bd5f888fe4c6/managers",
    "billing_managers_url": "/v2/organizations/2994db7e-1511-403f-9a3e-bd5f888fe4c6/billing_managers",
    "auditors_url": "/v2/organizations/2994db7e-1511-403f-9a3e-bd5f888fe4c6/auditors",
    "app_events_url": "/v2/organizations/2994db7e-1511-403f-9a3e-bd5f888fe4c6/app_events",
    "space_quota_definitions_url": "/v2/organizations/2994db7e-1511-403f-9a3e-bd5f888fe4c6/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8bd416be-aa7b-4722-adef-061e68e71bad
Content-Length: 1299
X-Content-Type-Options: nosniff