Home
Version 3
Organizations API

Organizations API

Disassociate Manager with the Organization by Username

DELETE v2/organizations/:guid/managers

Request

Route

DELETE v2/organizations/7ed653b3-0e02-4d7c-94e6-fb97258912a6/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.eyJ1c2VyX2lkIjoidWFhLWlkLTQzOSIsImVtYWlsIjoiZW1haWwtMzE2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDk1MzE1Mzl9.uRCfVXXXdHwpDhNITvSCuismZuEOt9jN0syVhnkVuFs
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/7ed653b3-0e02-4d7c-94e6-fb97258912a6/managers" -d '{
  "username": "manage@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzOSIsImVtYWlsIjoiZW1haWwtMzE2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDk1MzE1Mzl9.uRCfVXXXdHwpDhNITvSCuismZuEOt9jN0syVhnkVuFs" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "7ed653b3-0e02-4d7c-94e6-fb97258912a6",
    "url": "/v2/organizations/7ed653b3-0e02-4d7c-94e6-fb97258912a6",
    "created_at": "2015-11-30T23:38:59Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2521",
    "billing_enabled": false,
    "quota_definition_guid": "3a957b32-7c49-4349-a055-50056b7844e1",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/3a957b32-7c49-4349-a055-50056b7844e1",
    "spaces_url": "/v2/organizations/7ed653b3-0e02-4d7c-94e6-fb97258912a6/spaces",
    "domains_url": "/v2/organizations/7ed653b3-0e02-4d7c-94e6-fb97258912a6/domains",
    "private_domains_url": "/v2/organizations/7ed653b3-0e02-4d7c-94e6-fb97258912a6/private_domains",
    "users_url": "/v2/organizations/7ed653b3-0e02-4d7c-94e6-fb97258912a6/users",
    "managers_url": "/v2/organizations/7ed653b3-0e02-4d7c-94e6-fb97258912a6/managers",
    "billing_managers_url": "/v2/organizations/7ed653b3-0e02-4d7c-94e6-fb97258912a6/billing_managers",
    "auditors_url": "/v2/organizations/7ed653b3-0e02-4d7c-94e6-fb97258912a6/auditors",
    "app_events_url": "/v2/organizations/7ed653b3-0e02-4d7c-94e6-fb97258912a6/app_events",
    "space_quota_definitions_url": "/v2/organizations/7ed653b3-0e02-4d7c-94e6-fb97258912a6/space_quota_definitions"
  }
}

Headers

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