Home
Version 3
Organizations API

Organizations API

Remove Manager from the Organization

DELETE /v2/organizations/:guid/managers/:manager_guid

Request

Route

DELETE /v2/organizations/e0147c4a-e89f-42fb-8f32-1f7a1c526da9/managers/uaa-id-215

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxNyIsImVtYWlsIjoiZW1haWwtMTIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDN9.NFPCud-79Dxk7_mXW7qzRTrTINDBv0qc5lrbSiJ0LfA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/e0147c4a-e89f-42fb-8f32-1f7a1c526da9/managers/uaa-id-215" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxNyIsImVtYWlsIjoiZW1haWwtMTIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDN9.NFPCud-79Dxk7_mXW7qzRTrTINDBv0qc5lrbSiJ0LfA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "e0147c4a-e89f-42fb-8f32-1f7a1c526da9",
    "url": "/v2/organizations/e0147c4a-e89f-42fb-8f32-1f7a1c526da9",
    "created_at": "2015-09-30T23:30:43Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1330",
    "billing_enabled": false,
    "quota_definition_guid": "3394c283-2a93-416c-88c9-8b3b313194a5",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/3394c283-2a93-416c-88c9-8b3b313194a5",
    "spaces_url": "/v2/organizations/e0147c4a-e89f-42fb-8f32-1f7a1c526da9/spaces",
    "domains_url": "/v2/organizations/e0147c4a-e89f-42fb-8f32-1f7a1c526da9/domains",
    "private_domains_url": "/v2/organizations/e0147c4a-e89f-42fb-8f32-1f7a1c526da9/private_domains",
    "users_url": "/v2/organizations/e0147c4a-e89f-42fb-8f32-1f7a1c526da9/users",
    "managers_url": "/v2/organizations/e0147c4a-e89f-42fb-8f32-1f7a1c526da9/managers",
    "billing_managers_url": "/v2/organizations/e0147c4a-e89f-42fb-8f32-1f7a1c526da9/billing_managers",
    "auditors_url": "/v2/organizations/e0147c4a-e89f-42fb-8f32-1f7a1c526da9/auditors",
    "app_events_url": "/v2/organizations/e0147c4a-e89f-42fb-8f32-1f7a1c526da9/app_events",
    "space_quota_definitions_url": "/v2/organizations/e0147c4a-e89f-42fb-8f32-1f7a1c526da9/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b3f30bf3-4c0b-4395-a810-402c4f011821
Content-Length: 1300
X-Content-Type-Options: nosniff