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/41724c6b-6fad-4bf6-afb6-4dc151c4848c/private_domains/a001483d-55e3-4c36-88cc-eb21463ee116

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/41724c6b-6fad-4bf6-afb6-4dc151c4848c/private_domains/a001483d-55e3-4c36-88cc-eb21463ee116" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3OCIsImVtYWlsIjoiZW1haWwtMjgwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMjF9.RDFJgppFqDWKTmZVc7HxQF15aLRtjpRlwqSmWmB8Kbo" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "41724c6b-6fad-4bf6-afb6-4dc151c4848c",
    "url": "/v2/organizations/41724c6b-6fad-4bf6-afb6-4dc151c4848c",
    "created_at": "2015-06-04T00:05:21Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2192",
    "billing_enabled": false,
    "quota_definition_guid": "af84d227-cab1-404c-8880-72e23bcd97d6",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/af84d227-cab1-404c-8880-72e23bcd97d6",
    "spaces_url": "/v2/organizations/41724c6b-6fad-4bf6-afb6-4dc151c4848c/spaces",
    "domains_url": "/v2/organizations/41724c6b-6fad-4bf6-afb6-4dc151c4848c/domains",
    "private_domains_url": "/v2/organizations/41724c6b-6fad-4bf6-afb6-4dc151c4848c/private_domains",
    "users_url": "/v2/organizations/41724c6b-6fad-4bf6-afb6-4dc151c4848c/users",
    "managers_url": "/v2/organizations/41724c6b-6fad-4bf6-afb6-4dc151c4848c/managers",
    "billing_managers_url": "/v2/organizations/41724c6b-6fad-4bf6-afb6-4dc151c4848c/billing_managers",
    "auditors_url": "/v2/organizations/41724c6b-6fad-4bf6-afb6-4dc151c4848c/auditors",
    "app_events_url": "/v2/organizations/41724c6b-6fad-4bf6-afb6-4dc151c4848c/app_events",
    "space_quota_definitions_url": "/v2/organizations/41724c6b-6fad-4bf6-afb6-4dc151c4848c/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8a78e403-bc4e-4759-b304-55079cf0671b
Content-Length: 1300
X-Content-Type-Options: nosniff