Home
Version 3
Organizations API

Organizations API

Disassociate Manager with the Organization by Username

DELETE v2/organizations/:guid/managers

Request

Route

DELETE v2/organizations/b6c34996-526c-4c2a-b37b-a2af9df421ed/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.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MiIsImVtYWlsIjoiZW1haWwtMTI5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4Mzh9.SyRkEX4lk4p5EZOPgaDCgyFuKm5D64vvuMmGOKULHgg
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/b6c34996-526c-4c2a-b37b-a2af9df421ed/managers" -d '{
  "username": "manage@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MiIsImVtYWlsIjoiZW1haWwtMTI5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4Mzh9.SyRkEX4lk4p5EZOPgaDCgyFuKm5D64vvuMmGOKULHgg" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "b6c34996-526c-4c2a-b37b-a2af9df421ed",
    "url": "/v2/organizations/b6c34996-526c-4c2a-b37b-a2af9df421ed",
    "created_at": "2015-11-03T00:53:58Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-814",
    "billing_enabled": false,
    "quota_definition_guid": "d4745b2d-41a3-454c-b693-63a06a2a40aa",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/d4745b2d-41a3-454c-b693-63a06a2a40aa",
    "spaces_url": "/v2/organizations/b6c34996-526c-4c2a-b37b-a2af9df421ed/spaces",
    "domains_url": "/v2/organizations/b6c34996-526c-4c2a-b37b-a2af9df421ed/domains",
    "private_domains_url": "/v2/organizations/b6c34996-526c-4c2a-b37b-a2af9df421ed/private_domains",
    "users_url": "/v2/organizations/b6c34996-526c-4c2a-b37b-a2af9df421ed/users",
    "managers_url": "/v2/organizations/b6c34996-526c-4c2a-b37b-a2af9df421ed/managers",
    "billing_managers_url": "/v2/organizations/b6c34996-526c-4c2a-b37b-a2af9df421ed/billing_managers",
    "auditors_url": "/v2/organizations/b6c34996-526c-4c2a-b37b-a2af9df421ed/auditors",
    "app_events_url": "/v2/organizations/b6c34996-526c-4c2a-b37b-a2af9df421ed/app_events",
    "space_quota_definitions_url": "/v2/organizations/b6c34996-526c-4c2a-b37b-a2af9df421ed/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 47b6be56-2850-4d09-b06b-b01e5dc2916e
Content-Length: 1299
X-Content-Type-Options: nosniff