Home
Version 3
Organizations API

Organizations API

Remove Private Domain from the Organization

DELETE /v2/organizations/:guid/private_domains/:private_domain_guid

Request

Route

DELETE /v2/organizations/85011d79-e509-4eb2-a592-850101a40f82/private_domains/585edfd7-00fd-4bea-8fd7-03071224b329

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/85011d79-e509-4eb2-a592-850101a40f82/private_domains/585edfd7-00fd-4bea-8fd7-03071224b329" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NiIsImVtYWlsIjoiZW1haWwtMTA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDR9.hDPX_p_Vl8G9LoT13HYj1ge6l-qDo4L1A8Bo8YQgX74" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "85011d79-e509-4eb2-a592-850101a40f82",
    "url": "/v2/organizations/85011d79-e509-4eb2-a592-850101a40f82",
    "created_at": "2015-03-05T19:15:43Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-473",
    "billing_enabled": false,
    "quota_definition_guid": "8d39b448-5778-44fc-9e5d-9386b195bd39",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/8d39b448-5778-44fc-9e5d-9386b195bd39",
    "spaces_url": "/v2/organizations/85011d79-e509-4eb2-a592-850101a40f82/spaces",
    "domains_url": "/v2/organizations/85011d79-e509-4eb2-a592-850101a40f82/domains",
    "private_domains_url": "/v2/organizations/85011d79-e509-4eb2-a592-850101a40f82/private_domains",
    "users_url": "/v2/organizations/85011d79-e509-4eb2-a592-850101a40f82/users",
    "managers_url": "/v2/organizations/85011d79-e509-4eb2-a592-850101a40f82/managers",
    "billing_managers_url": "/v2/organizations/85011d79-e509-4eb2-a592-850101a40f82/billing_managers",
    "auditors_url": "/v2/organizations/85011d79-e509-4eb2-a592-850101a40f82/auditors",
    "app_events_url": "/v2/organizations/85011d79-e509-4eb2-a592-850101a40f82/app_events",
    "space_quota_definitions_url": "/v2/organizations/85011d79-e509-4eb2-a592-850101a40f82/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3f170f16-4673-48b2-b738-80ac95bd4118
Content-Length: 1299
X-Content-Type-Options: nosniff