Home
Version 3
Organizations API

Organizations API

Disassociate Manager with the Organization by Username

DELETE v2/organizations/:guid/managers

Request

Route

DELETE v2/organizations/750076ec-25c1-4abf-87db-09188429614a/managers

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization

Body

Name Description Default Valid Values Example Values
username The user's name
  • user@example.com
{
  "username": "manage@example.com"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MSIsImVtYWlsIjoiZW1haWwtMTEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5Nzh9.wyzy8FaQEsskAusDYJSO2r-MswAvH5SG6UXlm23HHtI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/750076ec-25c1-4abf-87db-09188429614a/managers" -d '{
  "username": "manage@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MSIsImVtYWlsIjoiZW1haWwtMTEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5Nzh9.wyzy8FaQEsskAusDYJSO2r-MswAvH5SG6UXlm23HHtI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "750076ec-25c1-4abf-87db-09188429614a",
    "url": "/v2/organizations/750076ec-25c1-4abf-87db-09188429614a",
    "created_at": "2016-01-13T17:29:38Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-512",
    "billing_enabled": false,
    "quota_definition_guid": "758ef9a7-a527-4bea-a39a-79bb40ef13e5",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/758ef9a7-a527-4bea-a39a-79bb40ef13e5",
    "spaces_url": "/v2/organizations/750076ec-25c1-4abf-87db-09188429614a/spaces",
    "domains_url": "/v2/organizations/750076ec-25c1-4abf-87db-09188429614a/domains",
    "private_domains_url": "/v2/organizations/750076ec-25c1-4abf-87db-09188429614a/private_domains",
    "users_url": "/v2/organizations/750076ec-25c1-4abf-87db-09188429614a/users",
    "managers_url": "/v2/organizations/750076ec-25c1-4abf-87db-09188429614a/managers",
    "billing_managers_url": "/v2/organizations/750076ec-25c1-4abf-87db-09188429614a/billing_managers",
    "auditors_url": "/v2/organizations/750076ec-25c1-4abf-87db-09188429614a/auditors",
    "app_events_url": "/v2/organizations/750076ec-25c1-4abf-87db-09188429614a/app_events",
    "space_quota_definitions_url": "/v2/organizations/750076ec-25c1-4abf-87db-09188429614a/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1299
X-Content-Type-Options: nosniff