Home
Version 3
Organizations API

Organizations API

Remove Manager from the Organization

DELETE /v2/organizations/:guid/managers/:manager_guid

Request

Route

DELETE /v2/organizations/e5238977-eff5-47b9-896c-10de8f5ca516/managers/uaa-id-344

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization
manager_guid The guid of the user to associate as a manager

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0NiIsImVtYWlsIjoiZW1haWwtMjUwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTh9.yCqmdyNvecDd33QehASok0C2KH1uoqxWoXF93f_5zwQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/e5238977-eff5-47b9-896c-10de8f5ca516/managers/uaa-id-344" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0NiIsImVtYWlsIjoiZW1haWwtMjUwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTh9.yCqmdyNvecDd33QehASok0C2KH1uoqxWoXF93f_5zwQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "e5238977-eff5-47b9-896c-10de8f5ca516",
    "url": "/v2/organizations/e5238977-eff5-47b9-896c-10de8f5ca516",
    "created_at": "2015-07-06T23:23:18Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2153",
    "billing_enabled": false,
    "quota_definition_guid": "22728167-ddf4-4742-a5e5-881cf59e7a24",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/22728167-ddf4-4742-a5e5-881cf59e7a24",
    "spaces_url": "/v2/organizations/e5238977-eff5-47b9-896c-10de8f5ca516/spaces",
    "domains_url": "/v2/organizations/e5238977-eff5-47b9-896c-10de8f5ca516/domains",
    "private_domains_url": "/v2/organizations/e5238977-eff5-47b9-896c-10de8f5ca516/private_domains",
    "users_url": "/v2/organizations/e5238977-eff5-47b9-896c-10de8f5ca516/users",
    "managers_url": "/v2/organizations/e5238977-eff5-47b9-896c-10de8f5ca516/managers",
    "billing_managers_url": "/v2/organizations/e5238977-eff5-47b9-896c-10de8f5ca516/billing_managers",
    "auditors_url": "/v2/organizations/e5238977-eff5-47b9-896c-10de8f5ca516/auditors",
    "app_events_url": "/v2/organizations/e5238977-eff5-47b9-896c-10de8f5ca516/app_events",
    "space_quota_definitions_url": "/v2/organizations/e5238977-eff5-47b9-896c-10de8f5ca516/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d65659d5-d0e4-424e-82de-679d79f395c2
Content-Length: 1300
X-Content-Type-Options: nosniff