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/ccfd68be-ee0d-46c5-a2a1-d6d6e9f899aa/private_domains/934d52c4-d696-47a0-9440-814836e4719c

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/ccfd68be-ee0d-46c5-a2a1-d6d6e9f899aa/private_domains/934d52c4-d696-47a0-9440-814836e4719c" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzIiwiZW1haWwiOiJlbWFpbC0xOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3MzIzOTU1fQ.qczzM7kwgDAuSCgeGPYs2ub8lFbJ0e_Kgq2ME-jnZ18" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "ccfd68be-ee0d-46c5-a2a1-d6d6e9f899aa",
    "url": "/v2/organizations/ccfd68be-ee0d-46c5-a2a1-d6d6e9f899aa",
    "created_at": "2015-03-18T22:52:35Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-66",
    "billing_enabled": false,
    "quota_definition_guid": "74a47d1c-665c-4b3f-af02-062ab14fa55b",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/74a47d1c-665c-4b3f-af02-062ab14fa55b",
    "spaces_url": "/v2/organizations/ccfd68be-ee0d-46c5-a2a1-d6d6e9f899aa/spaces",
    "domains_url": "/v2/organizations/ccfd68be-ee0d-46c5-a2a1-d6d6e9f899aa/domains",
    "private_domains_url": "/v2/organizations/ccfd68be-ee0d-46c5-a2a1-d6d6e9f899aa/private_domains",
    "users_url": "/v2/organizations/ccfd68be-ee0d-46c5-a2a1-d6d6e9f899aa/users",
    "managers_url": "/v2/organizations/ccfd68be-ee0d-46c5-a2a1-d6d6e9f899aa/managers",
    "billing_managers_url": "/v2/organizations/ccfd68be-ee0d-46c5-a2a1-d6d6e9f899aa/billing_managers",
    "auditors_url": "/v2/organizations/ccfd68be-ee0d-46c5-a2a1-d6d6e9f899aa/auditors",
    "app_events_url": "/v2/organizations/ccfd68be-ee0d-46c5-a2a1-d6d6e9f899aa/app_events",
    "space_quota_definitions_url": "/v2/organizations/ccfd68be-ee0d-46c5-a2a1-d6d6e9f899aa/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 1ea629b3-edd0-452f-bcd4-5b72fd7c921a
Content-Length: 1298
X-Content-Type-Options: nosniff