Home
Version 3
Organizations API

Organizations API

Remove User from the Organization

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

Request

Route

DELETE /v2/organizations/257e6391-1d83-4295-be21-c87307717137/users/uaa-id-124

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.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNSIsImVtYWlsIjoiZW1haWwtMTExQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTF9.XO665fgcqcVpUOwufmvCfjWKD8eWC3KbkovZUVBLRGo
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/257e6391-1d83-4295-be21-c87307717137/users/uaa-id-124" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNSIsImVtYWlsIjoiZW1haWwtMTExQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTF9.XO665fgcqcVpUOwufmvCfjWKD8eWC3KbkovZUVBLRGo" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "257e6391-1d83-4295-be21-c87307717137",
    "url": "/v2/organizations/257e6391-1d83-4295-be21-c87307717137",
    "created_at": "2015-06-16T23:40:51Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-544",
    "billing_enabled": false,
    "quota_definition_guid": "130060f5-9681-41ff-963f-4b40d51755ce",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/130060f5-9681-41ff-963f-4b40d51755ce",
    "spaces_url": "/v2/organizations/257e6391-1d83-4295-be21-c87307717137/spaces",
    "domains_url": "/v2/organizations/257e6391-1d83-4295-be21-c87307717137/domains",
    "private_domains_url": "/v2/organizations/257e6391-1d83-4295-be21-c87307717137/private_domains",
    "users_url": "/v2/organizations/257e6391-1d83-4295-be21-c87307717137/users",
    "managers_url": "/v2/organizations/257e6391-1d83-4295-be21-c87307717137/managers",
    "billing_managers_url": "/v2/organizations/257e6391-1d83-4295-be21-c87307717137/billing_managers",
    "auditors_url": "/v2/organizations/257e6391-1d83-4295-be21-c87307717137/auditors",
    "app_events_url": "/v2/organizations/257e6391-1d83-4295-be21-c87307717137/app_events",
    "space_quota_definitions_url": "/v2/organizations/257e6391-1d83-4295-be21-c87307717137/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c757e147-6b48-419a-a789-f7ab0b7f0f91
Content-Length: 1299
X-Content-Type-Options: nosniff