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/1e7078b5-df7f-4cf2-9967-38cf8c71ae0c/private_domains/5c1ca50d-b494-4fb5-ba74-0e5f08ce4f83

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NyIsImVtYWlsIjoiZW1haWwtMTEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDJ9.zYuoMXJI0_JXfRRz9tybsZAXn6j-8XDpecVUQraBaHI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/1e7078b5-df7f-4cf2-9967-38cf8c71ae0c/private_domains/5c1ca50d-b494-4fb5-ba74-0e5f08ce4f83" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NyIsImVtYWlsIjoiZW1haWwtMTEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDJ9.zYuoMXJI0_JXfRRz9tybsZAXn6j-8XDpecVUQraBaHI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "1e7078b5-df7f-4cf2-9967-38cf8c71ae0c",
    "url": "/v2/organizations/1e7078b5-df7f-4cf2-9967-38cf8c71ae0c",
    "created_at": "2015-09-30T23:30:42Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1312",
    "billing_enabled": false,
    "quota_definition_guid": "751f2052-23f5-4884-b634-7ec298f14557",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/751f2052-23f5-4884-b634-7ec298f14557",
    "spaces_url": "/v2/organizations/1e7078b5-df7f-4cf2-9967-38cf8c71ae0c/spaces",
    "domains_url": "/v2/organizations/1e7078b5-df7f-4cf2-9967-38cf8c71ae0c/domains",
    "private_domains_url": "/v2/organizations/1e7078b5-df7f-4cf2-9967-38cf8c71ae0c/private_domains",
    "users_url": "/v2/organizations/1e7078b5-df7f-4cf2-9967-38cf8c71ae0c/users",
    "managers_url": "/v2/organizations/1e7078b5-df7f-4cf2-9967-38cf8c71ae0c/managers",
    "billing_managers_url": "/v2/organizations/1e7078b5-df7f-4cf2-9967-38cf8c71ae0c/billing_managers",
    "auditors_url": "/v2/organizations/1e7078b5-df7f-4cf2-9967-38cf8c71ae0c/auditors",
    "app_events_url": "/v2/organizations/1e7078b5-df7f-4cf2-9967-38cf8c71ae0c/app_events",
    "space_quota_definitions_url": "/v2/organizations/1e7078b5-df7f-4cf2-9967-38cf8c71ae0c/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7cec6c23-110d-4834-adf0-4e45c3801338
Content-Length: 1300
X-Content-Type-Options: nosniff