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/df34b99a-ea4a-49dd-83ab-2618e987481c/private_domains/280f46b1-b748-4b66-aa9f-153189b61fc8

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/df34b99a-ea4a-49dd-83ab-2618e987481c/private_domains/280f46b1-b748-4b66-aa9f-153189b61fc8" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNiIsImVtYWlsIjoiZW1haWwtODZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyOTAzODcwMn0.0xOHYP9scTtsfWJcD1VHYOUqmnoeTH2COtloG8Lvaco" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "df34b99a-ea4a-49dd-83ab-2618e987481c",
    "url": "/v2/organizations/df34b99a-ea4a-49dd-83ab-2618e987481c",
    "created_at": "2015-04-07T19:11:42Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-308",
    "billing_enabled": false,
    "quota_definition_guid": "7fbfc484-6134-42aa-abef-f94eaaf05a80",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/7fbfc484-6134-42aa-abef-f94eaaf05a80",
    "spaces_url": "/v2/organizations/df34b99a-ea4a-49dd-83ab-2618e987481c/spaces",
    "domains_url": "/v2/organizations/df34b99a-ea4a-49dd-83ab-2618e987481c/domains",
    "private_domains_url": "/v2/organizations/df34b99a-ea4a-49dd-83ab-2618e987481c/private_domains",
    "users_url": "/v2/organizations/df34b99a-ea4a-49dd-83ab-2618e987481c/users",
    "managers_url": "/v2/organizations/df34b99a-ea4a-49dd-83ab-2618e987481c/managers",
    "billing_managers_url": "/v2/organizations/df34b99a-ea4a-49dd-83ab-2618e987481c/billing_managers",
    "auditors_url": "/v2/organizations/df34b99a-ea4a-49dd-83ab-2618e987481c/auditors",
    "app_events_url": "/v2/organizations/df34b99a-ea4a-49dd-83ab-2618e987481c/app_events",
    "space_quota_definitions_url": "/v2/organizations/df34b99a-ea4a-49dd-83ab-2618e987481c/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 86e8a41c-eefd-4a1e-bf0b-da23f87d1a55
Content-Length: 1299
X-Content-Type-Options: nosniff