Home
Version 3
Organizations API

Organizations API

Disassociate Manager with the Organization by Username

DELETE v2/organizations/:guid/managers

Request

Route

DELETE v2/organizations/0cec6e8f-81c7-45c7-b251-de7eb7ac9562/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.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMyIsImVtYWlsIjoiZW1haWwtNTdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjI5OX0.U6IhRQS01Q1PL7j0lMSMx7HH5G9ZpSxMeZL4V0BukiM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/0cec6e8f-81c7-45c7-b251-de7eb7ac9562/managers" -d '{
  "username": "manage@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMyIsImVtYWlsIjoiZW1haWwtNTdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjI5OX0.U6IhRQS01Q1PL7j0lMSMx7HH5G9ZpSxMeZL4V0BukiM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "0cec6e8f-81c7-45c7-b251-de7eb7ac9562",
    "url": "/v2/organizations/0cec6e8f-81c7-45c7-b251-de7eb7ac9562",
    "created_at": "2015-10-13T17:31:39Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-225",
    "billing_enabled": false,
    "quota_definition_guid": "44bebdc6-5953-420f-9a80-993780be9e34",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/44bebdc6-5953-420f-9a80-993780be9e34",
    "spaces_url": "/v2/organizations/0cec6e8f-81c7-45c7-b251-de7eb7ac9562/spaces",
    "domains_url": "/v2/organizations/0cec6e8f-81c7-45c7-b251-de7eb7ac9562/domains",
    "private_domains_url": "/v2/organizations/0cec6e8f-81c7-45c7-b251-de7eb7ac9562/private_domains",
    "users_url": "/v2/organizations/0cec6e8f-81c7-45c7-b251-de7eb7ac9562/users",
    "managers_url": "/v2/organizations/0cec6e8f-81c7-45c7-b251-de7eb7ac9562/managers",
    "billing_managers_url": "/v2/organizations/0cec6e8f-81c7-45c7-b251-de7eb7ac9562/billing_managers",
    "auditors_url": "/v2/organizations/0cec6e8f-81c7-45c7-b251-de7eb7ac9562/auditors",
    "app_events_url": "/v2/organizations/0cec6e8f-81c7-45c7-b251-de7eb7ac9562/app_events",
    "space_quota_definitions_url": "/v2/organizations/0cec6e8f-81c7-45c7-b251-de7eb7ac9562/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9da99864-c88b-4bf2-84fb-e7f52b68240b
Content-Length: 1299
X-Content-Type-Options: nosniff