Home
Version 3
Organizations API

Organizations API

Disassociate Manager with the Organization by Username (experimental)

DELETE v2/organizations/:guid/managers

Request

Route

DELETE v2/organizations/00f31255-b7fc-43d5-95f2-29d30f57f2fb/managers

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
{
  "username": "manage@example.com"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExMSIsImVtYWlsIjoiZW1haWwtNjhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MjYwMTUyOX0.3Ynqu7EoxgqhVBmYMUXFSQO3PCLo2dzEWJukllomBaQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/00f31255-b7fc-43d5-95f2-29d30f57f2fb/managers" -d '{
  "username": "manage@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExMSIsImVtYWlsIjoiZW1haWwtNjhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MjYwMTUyOX0.3Ynqu7EoxgqhVBmYMUXFSQO3PCLo2dzEWJukllomBaQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "00f31255-b7fc-43d5-95f2-29d30f57f2fb",
    "url": "/v2/organizations/00f31255-b7fc-43d5-95f2-29d30f57f2fb",
    "created_at": "2015-09-11T18:38:49Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-282",
    "billing_enabled": false,
    "quota_definition_guid": "4f6dd893-1979-4413-ba16-b4db41ed2166",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/4f6dd893-1979-4413-ba16-b4db41ed2166",
    "spaces_url": "/v2/organizations/00f31255-b7fc-43d5-95f2-29d30f57f2fb/spaces",
    "domains_url": "/v2/organizations/00f31255-b7fc-43d5-95f2-29d30f57f2fb/domains",
    "private_domains_url": "/v2/organizations/00f31255-b7fc-43d5-95f2-29d30f57f2fb/private_domains",
    "users_url": "/v2/organizations/00f31255-b7fc-43d5-95f2-29d30f57f2fb/users",
    "managers_url": "/v2/organizations/00f31255-b7fc-43d5-95f2-29d30f57f2fb/managers",
    "billing_managers_url": "/v2/organizations/00f31255-b7fc-43d5-95f2-29d30f57f2fb/billing_managers",
    "auditors_url": "/v2/organizations/00f31255-b7fc-43d5-95f2-29d30f57f2fb/auditors",
    "app_events_url": "/v2/organizations/00f31255-b7fc-43d5-95f2-29d30f57f2fb/app_events",
    "space_quota_definitions_url": "/v2/organizations/00f31255-b7fc-43d5-95f2-29d30f57f2fb/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 551f5ac8-90a2-42d4-8510-45a09261b797
Content-Length: 1299
X-Content-Type-Options: nosniff