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/faa7248f-79c4-4c19-8b93-6bb3588b0526/private_domains/8f0db2c8-faf8-4467-8c89-e582e95d291b

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/faa7248f-79c4-4c19-8b93-6bb3588b0526/private_domains/8f0db2c8-faf8-4467-8c89-e582e95d291b" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MiIsImVtYWlsIjoiZW1haWwtMjU0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTh9.eqRQVmNKVNCIYneOomyiJfmtYlgzND1Op_HQeKSRW4g" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "faa7248f-79c4-4c19-8b93-6bb3588b0526",
    "url": "/v2/organizations/faa7248f-79c4-4c19-8b93-6bb3588b0526",
    "created_at": "2015-07-06T23:23:18Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2169",
    "billing_enabled": false,
    "quota_definition_guid": "8efc1b52-8755-4e08-be06-39f41c2075c8",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/8efc1b52-8755-4e08-be06-39f41c2075c8",
    "spaces_url": "/v2/organizations/faa7248f-79c4-4c19-8b93-6bb3588b0526/spaces",
    "domains_url": "/v2/organizations/faa7248f-79c4-4c19-8b93-6bb3588b0526/domains",
    "private_domains_url": "/v2/organizations/faa7248f-79c4-4c19-8b93-6bb3588b0526/private_domains",
    "users_url": "/v2/organizations/faa7248f-79c4-4c19-8b93-6bb3588b0526/users",
    "managers_url": "/v2/organizations/faa7248f-79c4-4c19-8b93-6bb3588b0526/managers",
    "billing_managers_url": "/v2/organizations/faa7248f-79c4-4c19-8b93-6bb3588b0526/billing_managers",
    "auditors_url": "/v2/organizations/faa7248f-79c4-4c19-8b93-6bb3588b0526/auditors",
    "app_events_url": "/v2/organizations/faa7248f-79c4-4c19-8b93-6bb3588b0526/app_events",
    "space_quota_definitions_url": "/v2/organizations/faa7248f-79c4-4c19-8b93-6bb3588b0526/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c5ab8512-7e3e-429b-a33c-57e88142c09f
Content-Length: 1300
X-Content-Type-Options: nosniff