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/884eafa9-a97c-4738-ae1d-b3a76af0e91a/private_domains/309b7a41-db6f-40ef-bea8-a25db25f7e15

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.eyJ1c2VyX2lkIjoidWFhLWlkLTg1IiwiZW1haWwiOiJlbWFpbC03M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM5NDI2MTk2fQ.wwbApCrTe3d4yEl_UDGKtjKF-awsyAxJ6G3M-b48uA8
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/884eafa9-a97c-4738-ae1d-b3a76af0e91a/private_domains/309b7a41-db6f-40ef-bea8-a25db25f7e15" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg1IiwiZW1haWwiOiJlbWFpbC03M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM5NDI2MTk2fQ.wwbApCrTe3d4yEl_UDGKtjKF-awsyAxJ6G3M-b48uA8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "884eafa9-a97c-4738-ae1d-b3a76af0e91a",
    "url": "/v2/organizations/884eafa9-a97c-4738-ae1d-b3a76af0e91a",
    "created_at": "2015-08-06T00:36:36Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-374",
    "billing_enabled": false,
    "quota_definition_guid": "4d297143-5fb8-40ec-b98b-52c2a3fef1cb",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/4d297143-5fb8-40ec-b98b-52c2a3fef1cb",
    "spaces_url": "/v2/organizations/884eafa9-a97c-4738-ae1d-b3a76af0e91a/spaces",
    "domains_url": "/v2/organizations/884eafa9-a97c-4738-ae1d-b3a76af0e91a/domains",
    "private_domains_url": "/v2/organizations/884eafa9-a97c-4738-ae1d-b3a76af0e91a/private_domains",
    "users_url": "/v2/organizations/884eafa9-a97c-4738-ae1d-b3a76af0e91a/users",
    "managers_url": "/v2/organizations/884eafa9-a97c-4738-ae1d-b3a76af0e91a/managers",
    "billing_managers_url": "/v2/organizations/884eafa9-a97c-4738-ae1d-b3a76af0e91a/billing_managers",
    "auditors_url": "/v2/organizations/884eafa9-a97c-4738-ae1d-b3a76af0e91a/auditors",
    "app_events_url": "/v2/organizations/884eafa9-a97c-4738-ae1d-b3a76af0e91a/app_events",
    "space_quota_definitions_url": "/v2/organizations/884eafa9-a97c-4738-ae1d-b3a76af0e91a/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 030692b6-e9c5-4c71-96de-0fb44e84962e
Content-Length: 1299
X-Content-Type-Options: nosniff