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/205cd243-9d44-4082-b2f0-9d808dfec727/private_domains/044e436a-c21b-42e9-b244-e7673c14f968

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/205cd243-9d44-4082-b2f0-9d808dfec727/private_domains/044e436a-c21b-42e9-b244-e7673c14f968" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwNiIsImVtYWlsIjoiZW1haWwtNjZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzODY0MTc5MH0.nJghztV2iJkWbPnRgK35oReRRI_vIqPAFBR3WaKq5N0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "205cd243-9d44-4082-b2f0-9d808dfec727",
    "url": "/v2/organizations/205cd243-9d44-4082-b2f0-9d808dfec727",
    "created_at": "2015-07-27T22:43:10Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-224",
    "billing_enabled": false,
    "quota_definition_guid": "0dc4bff5-ba90-4e77-8980-ecdce102755c",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/0dc4bff5-ba90-4e77-8980-ecdce102755c",
    "spaces_url": "/v2/organizations/205cd243-9d44-4082-b2f0-9d808dfec727/spaces",
    "domains_url": "/v2/organizations/205cd243-9d44-4082-b2f0-9d808dfec727/domains",
    "private_domains_url": "/v2/organizations/205cd243-9d44-4082-b2f0-9d808dfec727/private_domains",
    "users_url": "/v2/organizations/205cd243-9d44-4082-b2f0-9d808dfec727/users",
    "managers_url": "/v2/organizations/205cd243-9d44-4082-b2f0-9d808dfec727/managers",
    "billing_managers_url": "/v2/organizations/205cd243-9d44-4082-b2f0-9d808dfec727/billing_managers",
    "auditors_url": "/v2/organizations/205cd243-9d44-4082-b2f0-9d808dfec727/auditors",
    "app_events_url": "/v2/organizations/205cd243-9d44-4082-b2f0-9d808dfec727/app_events",
    "space_quota_definitions_url": "/v2/organizations/205cd243-9d44-4082-b2f0-9d808dfec727/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0d7e4251-1f7a-4dca-a5a7-f83b584f34c9
Content-Length: 1299
X-Content-Type-Options: nosniff