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/11eb4a7f-f2fe-4d58-b991-17d4c8b9201f/private_domains/4d74eafe-15d3-4d94-91c9-d494cf744627

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/11eb4a7f-f2fe-4d58-b991-17d4c8b9201f/private_domains/4d74eafe-15d3-4d94-91c9-d494cf744627" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2MyIsImVtYWlsIjoiZW1haWwtMjQ1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDJ9.VDwEUCg8bbqihKlb37Xtxx4Jwnw5Y3tvvOFvdr6zQXk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "11eb4a7f-f2fe-4d58-b991-17d4c8b9201f",
    "url": "/v2/organizations/11eb4a7f-f2fe-4d58-b991-17d4c8b9201f",
    "created_at": "2015-10-07T00:35:42Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2164",
    "billing_enabled": false,
    "quota_definition_guid": "e3b52234-dc2d-44b1-b5f5-00809636de06",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/e3b52234-dc2d-44b1-b5f5-00809636de06",
    "spaces_url": "/v2/organizations/11eb4a7f-f2fe-4d58-b991-17d4c8b9201f/spaces",
    "domains_url": "/v2/organizations/11eb4a7f-f2fe-4d58-b991-17d4c8b9201f/domains",
    "private_domains_url": "/v2/organizations/11eb4a7f-f2fe-4d58-b991-17d4c8b9201f/private_domains",
    "users_url": "/v2/organizations/11eb4a7f-f2fe-4d58-b991-17d4c8b9201f/users",
    "managers_url": "/v2/organizations/11eb4a7f-f2fe-4d58-b991-17d4c8b9201f/managers",
    "billing_managers_url": "/v2/organizations/11eb4a7f-f2fe-4d58-b991-17d4c8b9201f/billing_managers",
    "auditors_url": "/v2/organizations/11eb4a7f-f2fe-4d58-b991-17d4c8b9201f/auditors",
    "app_events_url": "/v2/organizations/11eb4a7f-f2fe-4d58-b991-17d4c8b9201f/app_events",
    "space_quota_definitions_url": "/v2/organizations/11eb4a7f-f2fe-4d58-b991-17d4c8b9201f/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: df0bff14-351b-44e2-b6cb-b59a3b964a6b
Content-Length: 1300
X-Content-Type-Options: nosniff