Home
Version 3
Organizations API

Organizations API

Remove User from the Organization

DELETE /v2/organizations/:guid/users/:user_guid

Request

Route

DELETE /v2/organizations/57ce1b62-e92b-471a-b3a9-e64e80f0f9a5/users/uaa-id-135

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNiIsImVtYWlsIjoiZW1haWwtMTAzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDJ9.uDR02hC_BGmz9bUTLv27H4JJtJwKfY5fLGFwhhb959c
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/57ce1b62-e92b-471a-b3a9-e64e80f0f9a5/users/uaa-id-135" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNiIsImVtYWlsIjoiZW1haWwtMTAzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDJ9.uDR02hC_BGmz9bUTLv27H4JJtJwKfY5fLGFwhhb959c" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "57ce1b62-e92b-471a-b3a9-e64e80f0f9a5",
    "url": "/v2/organizations/57ce1b62-e92b-471a-b3a9-e64e80f0f9a5",
    "created_at": "2015-03-10T23:11:42Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-393",
    "billing_enabled": false,
    "quota_definition_guid": "3528a180-b651-46ba-bfef-737eb5d6bbc8",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/3528a180-b651-46ba-bfef-737eb5d6bbc8",
    "spaces_url": "/v2/organizations/57ce1b62-e92b-471a-b3a9-e64e80f0f9a5/spaces",
    "domains_url": "/v2/organizations/57ce1b62-e92b-471a-b3a9-e64e80f0f9a5/domains",
    "private_domains_url": "/v2/organizations/57ce1b62-e92b-471a-b3a9-e64e80f0f9a5/private_domains",
    "users_url": "/v2/organizations/57ce1b62-e92b-471a-b3a9-e64e80f0f9a5/users",
    "managers_url": "/v2/organizations/57ce1b62-e92b-471a-b3a9-e64e80f0f9a5/managers",
    "billing_managers_url": "/v2/organizations/57ce1b62-e92b-471a-b3a9-e64e80f0f9a5/billing_managers",
    "auditors_url": "/v2/organizations/57ce1b62-e92b-471a-b3a9-e64e80f0f9a5/auditors",
    "app_events_url": "/v2/organizations/57ce1b62-e92b-471a-b3a9-e64e80f0f9a5/app_events",
    "space_quota_definitions_url": "/v2/organizations/57ce1b62-e92b-471a-b3a9-e64e80f0f9a5/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ebaaba2e-4646-4d4a-bf0f-44b96338f85c
Content-Length: 1299
X-Content-Type-Options: nosniff