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/661a16b2-f0ed-49af-8f01-61b6c205c1a9/private_domains/478eb5dc-0045-4738-b49e-28e819657fea

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/661a16b2-f0ed-49af-8f01-61b6c205c1a9/private_domains/478eb5dc-0045-4738-b49e-28e819657fea" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwOSIsImVtYWlsIjoiZW1haWwtNTdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MTY2MjU5N30.Brsph5valm4s2_C0QNCLbUSUxkb7-DgnGk6KzkB_nFo" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "661a16b2-f0ed-49af-8f01-61b6c205c1a9",
    "url": "/v2/organizations/661a16b2-f0ed-49af-8f01-61b6c205c1a9",
    "created_at": "2015-08-31T21:49:57Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-314",
    "billing_enabled": false,
    "quota_definition_guid": "7efa2fec-62ae-42bc-a40b-0fdc2036d23e",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/7efa2fec-62ae-42bc-a40b-0fdc2036d23e",
    "spaces_url": "/v2/organizations/661a16b2-f0ed-49af-8f01-61b6c205c1a9/spaces",
    "domains_url": "/v2/organizations/661a16b2-f0ed-49af-8f01-61b6c205c1a9/domains",
    "private_domains_url": "/v2/organizations/661a16b2-f0ed-49af-8f01-61b6c205c1a9/private_domains",
    "users_url": "/v2/organizations/661a16b2-f0ed-49af-8f01-61b6c205c1a9/users",
    "managers_url": "/v2/organizations/661a16b2-f0ed-49af-8f01-61b6c205c1a9/managers",
    "billing_managers_url": "/v2/organizations/661a16b2-f0ed-49af-8f01-61b6c205c1a9/billing_managers",
    "auditors_url": "/v2/organizations/661a16b2-f0ed-49af-8f01-61b6c205c1a9/auditors",
    "app_events_url": "/v2/organizations/661a16b2-f0ed-49af-8f01-61b6c205c1a9/app_events",
    "space_quota_definitions_url": "/v2/organizations/661a16b2-f0ed-49af-8f01-61b6c205c1a9/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 00a75c58-89e0-4bca-aef2-bad9b015b87c
Content-Length: 1299
X-Content-Type-Options: nosniff