Home
Version 3
Organizations API

Organizations API

Remove User from the Organization

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

Request

Route

DELETE /v2/organizations/8c3768a0-bbfb-43c4-9d0a-065314cffdba/users/uaa-id-193

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/8c3768a0-bbfb-43c4-9d0a-065314cffdba/users/uaa-id-193" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NCIsImVtYWlsIjoiZW1haWwtMTY2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MTZ9.2BSKehOsjlm72DpLy7STcJKpBelI1YQfPQTXEt_NakA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "8c3768a0-bbfb-43c4-9d0a-065314cffdba",
    "url": "/v2/organizations/8c3768a0-bbfb-43c4-9d0a-065314cffdba",
    "created_at": "2015-05-15T16:53:36Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-833",
    "billing_enabled": false,
    "quota_definition_guid": "f347757d-d7e8-484f-8604-718b328f1bed",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/f347757d-d7e8-484f-8604-718b328f1bed",
    "spaces_url": "/v2/organizations/8c3768a0-bbfb-43c4-9d0a-065314cffdba/spaces",
    "domains_url": "/v2/organizations/8c3768a0-bbfb-43c4-9d0a-065314cffdba/domains",
    "private_domains_url": "/v2/organizations/8c3768a0-bbfb-43c4-9d0a-065314cffdba/private_domains",
    "users_url": "/v2/organizations/8c3768a0-bbfb-43c4-9d0a-065314cffdba/users",
    "managers_url": "/v2/organizations/8c3768a0-bbfb-43c4-9d0a-065314cffdba/managers",
    "billing_managers_url": "/v2/organizations/8c3768a0-bbfb-43c4-9d0a-065314cffdba/billing_managers",
    "auditors_url": "/v2/organizations/8c3768a0-bbfb-43c4-9d0a-065314cffdba/auditors",
    "app_events_url": "/v2/organizations/8c3768a0-bbfb-43c4-9d0a-065314cffdba/app_events",
    "space_quota_definitions_url": "/v2/organizations/8c3768a0-bbfb-43c4-9d0a-065314cffdba/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: adf0f5bf-0a1a-4165-a8ab-28630e7415c5
Content-Length: 1299
X-Content-Type-Options: nosniff