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/2e2e3c8f-0e62-469d-835f-5a1ba2692248/private_domains/bd97593d-d9f8-4801-9219-09dda940c287

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.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMCIsImVtYWlsIjoiZW1haWwtNjdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjI5OX0.YfASaSYhaHY0F-BC_KcYJ_9MtNs6npM-5TODS9QphCs
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/2e2e3c8f-0e62-469d-835f-5a1ba2692248/private_domains/bd97593d-d9f8-4801-9219-09dda940c287" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMCIsImVtYWlsIjoiZW1haWwtNjdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjI5OX0.YfASaSYhaHY0F-BC_KcYJ_9MtNs6npM-5TODS9QphCs" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "2e2e3c8f-0e62-469d-835f-5a1ba2692248",
    "url": "/v2/organizations/2e2e3c8f-0e62-469d-835f-5a1ba2692248",
    "created_at": "2015-10-13T17:31:39Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-250",
    "billing_enabled": false,
    "quota_definition_guid": "8d1e7267-7271-4081-858a-f8a1fdfcad62",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/8d1e7267-7271-4081-858a-f8a1fdfcad62",
    "spaces_url": "/v2/organizations/2e2e3c8f-0e62-469d-835f-5a1ba2692248/spaces",
    "domains_url": "/v2/organizations/2e2e3c8f-0e62-469d-835f-5a1ba2692248/domains",
    "private_domains_url": "/v2/organizations/2e2e3c8f-0e62-469d-835f-5a1ba2692248/private_domains",
    "users_url": "/v2/organizations/2e2e3c8f-0e62-469d-835f-5a1ba2692248/users",
    "managers_url": "/v2/organizations/2e2e3c8f-0e62-469d-835f-5a1ba2692248/managers",
    "billing_managers_url": "/v2/organizations/2e2e3c8f-0e62-469d-835f-5a1ba2692248/billing_managers",
    "auditors_url": "/v2/organizations/2e2e3c8f-0e62-469d-835f-5a1ba2692248/auditors",
    "app_events_url": "/v2/organizations/2e2e3c8f-0e62-469d-835f-5a1ba2692248/app_events",
    "space_quota_definitions_url": "/v2/organizations/2e2e3c8f-0e62-469d-835f-5a1ba2692248/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d7cd0f28-cd17-49d1-83b7-d9b1885e9cac
Content-Length: 1299
X-Content-Type-Options: nosniff