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/e64cdad2-e028-422e-ae6a-4d42b4b93dda/private_domains/2cab1865-59e2-4064-9b29-3f265a81aec2

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.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1NCIsImVtYWlsIjoiZW1haWwtMzIzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzN9.ivn0gEtGEfk6-gWjSMtCTFXjkTNPqMM-3uRiaRBlA_s
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/e64cdad2-e028-422e-ae6a-4d42b4b93dda/private_domains/2cab1865-59e2-4064-9b29-3f265a81aec2" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1NCIsImVtYWlsIjoiZW1haWwtMzIzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzN9.ivn0gEtGEfk6-gWjSMtCTFXjkTNPqMM-3uRiaRBlA_s" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "e64cdad2-e028-422e-ae6a-4d42b4b93dda",
    "url": "/v2/organizations/e64cdad2-e028-422e-ae6a-4d42b4b93dda",
    "created_at": "2015-10-15T23:52:53Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2464",
    "billing_enabled": false,
    "quota_definition_guid": "813ca919-7901-4fe3-87be-86bc7d3bf912",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/813ca919-7901-4fe3-87be-86bc7d3bf912",
    "spaces_url": "/v2/organizations/e64cdad2-e028-422e-ae6a-4d42b4b93dda/spaces",
    "domains_url": "/v2/organizations/e64cdad2-e028-422e-ae6a-4d42b4b93dda/domains",
    "private_domains_url": "/v2/organizations/e64cdad2-e028-422e-ae6a-4d42b4b93dda/private_domains",
    "users_url": "/v2/organizations/e64cdad2-e028-422e-ae6a-4d42b4b93dda/users",
    "managers_url": "/v2/organizations/e64cdad2-e028-422e-ae6a-4d42b4b93dda/managers",
    "billing_managers_url": "/v2/organizations/e64cdad2-e028-422e-ae6a-4d42b4b93dda/billing_managers",
    "auditors_url": "/v2/organizations/e64cdad2-e028-422e-ae6a-4d42b4b93dda/auditors",
    "app_events_url": "/v2/organizations/e64cdad2-e028-422e-ae6a-4d42b4b93dda/app_events",
    "space_quota_definitions_url": "/v2/organizations/e64cdad2-e028-422e-ae6a-4d42b4b93dda/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: eb681c9a-3a0e-4538-a8fa-de1a53390d9b
Content-Length: 1300
X-Content-Type-Options: nosniff