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/59301ba6-d7c9-452b-ae33-e21b1a39db17/private_domains/353ce6ea-821a-44c7-a6de-aed946896cd5

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/59301ba6-d7c9-452b-ae33-e21b1a39db17/private_domains/353ce6ea-821a-44c7-a6de-aed946896cd5" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMSIsImVtYWlsIjoiZW1haWwtMTE1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTF9._2zTwDdS2ujiI_89DyjiSU5tJ7eVMsudzv51svXKC6c" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "59301ba6-d7c9-452b-ae33-e21b1a39db17",
    "url": "/v2/organizations/59301ba6-d7c9-452b-ae33-e21b1a39db17",
    "created_at": "2015-06-16T23:40:51Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-554",
    "billing_enabled": false,
    "quota_definition_guid": "00046f49-80c3-4960-89d9-f5edc4765e82",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/00046f49-80c3-4960-89d9-f5edc4765e82",
    "spaces_url": "/v2/organizations/59301ba6-d7c9-452b-ae33-e21b1a39db17/spaces",
    "domains_url": "/v2/organizations/59301ba6-d7c9-452b-ae33-e21b1a39db17/domains",
    "private_domains_url": "/v2/organizations/59301ba6-d7c9-452b-ae33-e21b1a39db17/private_domains",
    "users_url": "/v2/organizations/59301ba6-d7c9-452b-ae33-e21b1a39db17/users",
    "managers_url": "/v2/organizations/59301ba6-d7c9-452b-ae33-e21b1a39db17/managers",
    "billing_managers_url": "/v2/organizations/59301ba6-d7c9-452b-ae33-e21b1a39db17/billing_managers",
    "auditors_url": "/v2/organizations/59301ba6-d7c9-452b-ae33-e21b1a39db17/auditors",
    "app_events_url": "/v2/organizations/59301ba6-d7c9-452b-ae33-e21b1a39db17/app_events",
    "space_quota_definitions_url": "/v2/organizations/59301ba6-d7c9-452b-ae33-e21b1a39db17/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b03fb176-01b7-44c6-9dd6-2704c5067260
Content-Length: 1299
X-Content-Type-Options: nosniff