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/48f30f36-6d2f-4507-ab66-b2ebf1d867c5/private_domains/697df768-b351-4f10-b425-8176ecb893cb

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/48f30f36-6d2f-4507-ab66-b2ebf1d867c5/private_domains/697df768-b351-4f10-b425-8176ecb893cb" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMiIsImVtYWlsIjoiZW1haWwtOThAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNTk0ODY2NX0.5V5wsZmWIm7AmJMFKv1_shu_6mHLG2a15wQVRMpBD6o" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "48f30f36-6d2f-4507-ab66-b2ebf1d867c5",
    "url": "/v2/organizations/48f30f36-6d2f-4507-ab66-b2ebf1d867c5",
    "created_at": "2015-03-03T00:51:05Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1076",
    "billing_enabled": false,
    "quota_definition_guid": "7d8e1e4d-a115-4f63-8a73-c19b499f70cf",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/7d8e1e4d-a115-4f63-8a73-c19b499f70cf",
    "spaces_url": "/v2/organizations/48f30f36-6d2f-4507-ab66-b2ebf1d867c5/spaces",
    "domains_url": "/v2/organizations/48f30f36-6d2f-4507-ab66-b2ebf1d867c5/domains",
    "private_domains_url": "/v2/organizations/48f30f36-6d2f-4507-ab66-b2ebf1d867c5/private_domains",
    "users_url": "/v2/organizations/48f30f36-6d2f-4507-ab66-b2ebf1d867c5/users",
    "managers_url": "/v2/organizations/48f30f36-6d2f-4507-ab66-b2ebf1d867c5/managers",
    "billing_managers_url": "/v2/organizations/48f30f36-6d2f-4507-ab66-b2ebf1d867c5/billing_managers",
    "auditors_url": "/v2/organizations/48f30f36-6d2f-4507-ab66-b2ebf1d867c5/auditors",
    "app_events_url": "/v2/organizations/48f30f36-6d2f-4507-ab66-b2ebf1d867c5/app_events",
    "space_quota_definitions_url": "/v2/organizations/48f30f36-6d2f-4507-ab66-b2ebf1d867c5/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 58c6fed7-87a4-4d0e-a994-e27fa0055608
Content-Length: 1300
X-Content-Type-Options: nosniff