Home
Version 3
Organizations API

Organizations API

Disassociate Manager with the Organization by Username

DELETE v2/organizations/:guid/managers

Request

Route

DELETE v2/organizations/db90ffd7-5b6f-486e-ac97-dc0715c9dc8b/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.eyJ1c2VyX2lkIjoidWFhLWlkLTQyNyIsImVtYWlsIjoiZW1haWwtMzEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzJ9.eK9Hjz9RcN5nmTbxTf68pci4p1fTSWr9D-PVaPQDP3E
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/db90ffd7-5b6f-486e-ac97-dc0715c9dc8b/managers" -d '{
  "username": "manage@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyNyIsImVtYWlsIjoiZW1haWwtMzEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzJ9.eK9Hjz9RcN5nmTbxTf68pci4p1fTSWr9D-PVaPQDP3E" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "db90ffd7-5b6f-486e-ac97-dc0715c9dc8b",
    "url": "/v2/organizations/db90ffd7-5b6f-486e-ac97-dc0715c9dc8b",
    "created_at": "2015-10-15T23:52:52Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2444",
    "billing_enabled": false,
    "quota_definition_guid": "9e8a9bb8-aca2-46d9-8405-4cee0c24a6e0",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/9e8a9bb8-aca2-46d9-8405-4cee0c24a6e0",
    "spaces_url": "/v2/organizations/db90ffd7-5b6f-486e-ac97-dc0715c9dc8b/spaces",
    "domains_url": "/v2/organizations/db90ffd7-5b6f-486e-ac97-dc0715c9dc8b/domains",
    "private_domains_url": "/v2/organizations/db90ffd7-5b6f-486e-ac97-dc0715c9dc8b/private_domains",
    "users_url": "/v2/organizations/db90ffd7-5b6f-486e-ac97-dc0715c9dc8b/users",
    "managers_url": "/v2/organizations/db90ffd7-5b6f-486e-ac97-dc0715c9dc8b/managers",
    "billing_managers_url": "/v2/organizations/db90ffd7-5b6f-486e-ac97-dc0715c9dc8b/billing_managers",
    "auditors_url": "/v2/organizations/db90ffd7-5b6f-486e-ac97-dc0715c9dc8b/auditors",
    "app_events_url": "/v2/organizations/db90ffd7-5b6f-486e-ac97-dc0715c9dc8b/app_events",
    "space_quota_definitions_url": "/v2/organizations/db90ffd7-5b6f-486e-ac97-dc0715c9dc8b/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6dc0c3b0-acc6-41fa-a0aa-04ca070fbce8
Content-Length: 1300
X-Content-Type-Options: nosniff