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/8644f813-373d-40d8-af93-036432858123/private_domains/926a0e7a-26cb-47d2-84a1-e7f61f781463

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/8644f813-373d-40d8-af93-036432858123/private_domains/926a0e7a-26cb-47d2-84a1-e7f61f781463" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5MCIsImVtYWlsIjoiZW1haWwtMTYzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MTZ9.zsgxa2hiuKyMgR5xvoUosm5uIJEp8KRJpaCOyZTzM68" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "8644f813-373d-40d8-af93-036432858123",
    "url": "/v2/organizations/8644f813-373d-40d8-af93-036432858123",
    "created_at": "2015-05-15T16:53:36Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-819",
    "billing_enabled": false,
    "quota_definition_guid": "f0603ed2-59dc-43e5-b8d5-c904003d3836",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/f0603ed2-59dc-43e5-b8d5-c904003d3836",
    "spaces_url": "/v2/organizations/8644f813-373d-40d8-af93-036432858123/spaces",
    "domains_url": "/v2/organizations/8644f813-373d-40d8-af93-036432858123/domains",
    "private_domains_url": "/v2/organizations/8644f813-373d-40d8-af93-036432858123/private_domains",
    "users_url": "/v2/organizations/8644f813-373d-40d8-af93-036432858123/users",
    "managers_url": "/v2/organizations/8644f813-373d-40d8-af93-036432858123/managers",
    "billing_managers_url": "/v2/organizations/8644f813-373d-40d8-af93-036432858123/billing_managers",
    "auditors_url": "/v2/organizations/8644f813-373d-40d8-af93-036432858123/auditors",
    "app_events_url": "/v2/organizations/8644f813-373d-40d8-af93-036432858123/app_events",
    "space_quota_definitions_url": "/v2/organizations/8644f813-373d-40d8-af93-036432858123/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6d7a371c-5fea-4adf-b54a-4e2737d0e0b8
Content-Length: 1299
X-Content-Type-Options: nosniff