Home
Version 3
Organizations API

Organizations API

Disassociate Manager with the Organization by Username

DELETE v2/organizations/:guid/managers

Request

Route

DELETE v2/organizations/8ff4ca91-db8c-44d4-8009-073ccb40652d/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.eyJ1c2VyX2lkIjoidWFhLWlkLTM1OCIsImVtYWlsIjoiZW1haWwtMjQyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDJ9.2tCaoBK3RWKKYiyXE_U9sOp7G0SVkoaF_Iy6k1tA7YQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/8ff4ca91-db8c-44d4-8009-073ccb40652d/managers" -d '{
  "username": "manage@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1OCIsImVtYWlsIjoiZW1haWwtMjQyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDJ9.2tCaoBK3RWKKYiyXE_U9sOp7G0SVkoaF_Iy6k1tA7YQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "8ff4ca91-db8c-44d4-8009-073ccb40652d",
    "url": "/v2/organizations/8ff4ca91-db8c-44d4-8009-073ccb40652d",
    "created_at": "2015-10-07T00:35:42Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2154",
    "billing_enabled": false,
    "quota_definition_guid": "09421d0c-b63d-4a7e-82a3-49f6dc1f43cb",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/09421d0c-b63d-4a7e-82a3-49f6dc1f43cb",
    "spaces_url": "/v2/organizations/8ff4ca91-db8c-44d4-8009-073ccb40652d/spaces",
    "domains_url": "/v2/organizations/8ff4ca91-db8c-44d4-8009-073ccb40652d/domains",
    "private_domains_url": "/v2/organizations/8ff4ca91-db8c-44d4-8009-073ccb40652d/private_domains",
    "users_url": "/v2/organizations/8ff4ca91-db8c-44d4-8009-073ccb40652d/users",
    "managers_url": "/v2/organizations/8ff4ca91-db8c-44d4-8009-073ccb40652d/managers",
    "billing_managers_url": "/v2/organizations/8ff4ca91-db8c-44d4-8009-073ccb40652d/billing_managers",
    "auditors_url": "/v2/organizations/8ff4ca91-db8c-44d4-8009-073ccb40652d/auditors",
    "app_events_url": "/v2/organizations/8ff4ca91-db8c-44d4-8009-073ccb40652d/app_events",
    "space_quota_definitions_url": "/v2/organizations/8ff4ca91-db8c-44d4-8009-073ccb40652d/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 1db5c552-9d41-40b6-a9ef-922a827a6c81
Content-Length: 1300
X-Content-Type-Options: nosniff