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/cfe6b991-f116-4b8a-8016-1571abd3c655/private_domains/7ee6643f-d604-47f9-a39d-81ced3aa8c46

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/cfe6b991-f116-4b8a-8016-1571abd3c655/private_domains/7ee6643f-d604-47f9-a39d-81ced3aa8c46" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkwIiwiZW1haWwiOiJlbWFpbC01OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQyNjAxNTI5fQ.AIm6L0yFCVqHvSaT7TbUvtHsjwis1AFAEp5hKEEMz34" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "cfe6b991-f116-4b8a-8016-1571abd3c655",
    "url": "/v2/organizations/cfe6b991-f116-4b8a-8016-1571abd3c655",
    "created_at": "2015-09-11T18:38:49Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-256",
    "billing_enabled": false,
    "quota_definition_guid": "8e0f5e19-e740-4305-8ad1-87cae0e5d546",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/8e0f5e19-e740-4305-8ad1-87cae0e5d546",
    "spaces_url": "/v2/organizations/cfe6b991-f116-4b8a-8016-1571abd3c655/spaces",
    "domains_url": "/v2/organizations/cfe6b991-f116-4b8a-8016-1571abd3c655/domains",
    "private_domains_url": "/v2/organizations/cfe6b991-f116-4b8a-8016-1571abd3c655/private_domains",
    "users_url": "/v2/organizations/cfe6b991-f116-4b8a-8016-1571abd3c655/users",
    "managers_url": "/v2/organizations/cfe6b991-f116-4b8a-8016-1571abd3c655/managers",
    "billing_managers_url": "/v2/organizations/cfe6b991-f116-4b8a-8016-1571abd3c655/billing_managers",
    "auditors_url": "/v2/organizations/cfe6b991-f116-4b8a-8016-1571abd3c655/auditors",
    "app_events_url": "/v2/organizations/cfe6b991-f116-4b8a-8016-1571abd3c655/app_events",
    "space_quota_definitions_url": "/v2/organizations/cfe6b991-f116-4b8a-8016-1571abd3c655/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c3df66b0-5561-4196-9022-9e66bcb0ac72
Content-Length: 1299
X-Content-Type-Options: nosniff