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/fd442fbe-7f48-4a1d-b9ac-9961f1d5fd45/private_domains/13810114-26f1-48e2-809f-aac4df2ada9a

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/fd442fbe-7f48-4a1d-b9ac-9961f1d5fd45/private_domains/13810114-26f1-48e2-809f-aac4df2ada9a" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMSIsImVtYWlsIjoiZW1haWwtMjQyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNTB9.JWkqsYMWEnIPpLVBNQJNlojYUkPsxhRBDSVbDJ3MFFg" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "fd442fbe-7f48-4a1d-b9ac-9961f1d5fd45",
    "url": "/v2/organizations/fd442fbe-7f48-4a1d-b9ac-9961f1d5fd45",
    "created_at": "2015-04-15T00:55:50Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1962",
    "billing_enabled": false,
    "quota_definition_guid": "b7d1a3e5-f8fb-458e-bbc0-604b47fe35dd",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/b7d1a3e5-f8fb-458e-bbc0-604b47fe35dd",
    "spaces_url": "/v2/organizations/fd442fbe-7f48-4a1d-b9ac-9961f1d5fd45/spaces",
    "domains_url": "/v2/organizations/fd442fbe-7f48-4a1d-b9ac-9961f1d5fd45/domains",
    "private_domains_url": "/v2/organizations/fd442fbe-7f48-4a1d-b9ac-9961f1d5fd45/private_domains",
    "users_url": "/v2/organizations/fd442fbe-7f48-4a1d-b9ac-9961f1d5fd45/users",
    "managers_url": "/v2/organizations/fd442fbe-7f48-4a1d-b9ac-9961f1d5fd45/managers",
    "billing_managers_url": "/v2/organizations/fd442fbe-7f48-4a1d-b9ac-9961f1d5fd45/billing_managers",
    "auditors_url": "/v2/organizations/fd442fbe-7f48-4a1d-b9ac-9961f1d5fd45/auditors",
    "app_events_url": "/v2/organizations/fd442fbe-7f48-4a1d-b9ac-9961f1d5fd45/app_events",
    "space_quota_definitions_url": "/v2/organizations/fd442fbe-7f48-4a1d-b9ac-9961f1d5fd45/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0e4bbc1a-74c5-43ec-8886-2832061ca004
Content-Length: 1300
X-Content-Type-Options: nosniff