Home
Version 3
Organizations API

Organizations API

Remove User from the Organization

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

Request

Route

DELETE /v2/organizations/e24d4032-fd5e-44ed-b437-6005232101ec/users/uaa-id-185

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE4NiIsImVtYWlsIjoiZW1haWwtMTE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2MzN9.v_20seP2n-v35SCYe8rFKzXgbeFZ-JhOVGQecyi-49A
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/e24d4032-fd5e-44ed-b437-6005232101ec/users/uaa-id-185" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4NiIsImVtYWlsIjoiZW1haWwtMTE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2MzN9.v_20seP2n-v35SCYe8rFKzXgbeFZ-JhOVGQecyi-49A" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "e24d4032-fd5e-44ed-b437-6005232101ec",
    "url": "/v2/organizations/e24d4032-fd5e-44ed-b437-6005232101ec",
    "created_at": "2015-05-07T23:37:13Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1241",
    "billing_enabled": false,
    "quota_definition_guid": "933d9320-f206-44e7-9728-4eb5d9ec1a23",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/933d9320-f206-44e7-9728-4eb5d9ec1a23",
    "spaces_url": "/v2/organizations/e24d4032-fd5e-44ed-b437-6005232101ec/spaces",
    "domains_url": "/v2/organizations/e24d4032-fd5e-44ed-b437-6005232101ec/domains",
    "private_domains_url": "/v2/organizations/e24d4032-fd5e-44ed-b437-6005232101ec/private_domains",
    "users_url": "/v2/organizations/e24d4032-fd5e-44ed-b437-6005232101ec/users",
    "managers_url": "/v2/organizations/e24d4032-fd5e-44ed-b437-6005232101ec/managers",
    "billing_managers_url": "/v2/organizations/e24d4032-fd5e-44ed-b437-6005232101ec/billing_managers",
    "auditors_url": "/v2/organizations/e24d4032-fd5e-44ed-b437-6005232101ec/auditors",
    "app_events_url": "/v2/organizations/e24d4032-fd5e-44ed-b437-6005232101ec/app_events",
    "space_quota_definitions_url": "/v2/organizations/e24d4032-fd5e-44ed-b437-6005232101ec/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 14dc0616-c081-47a6-83b5-83eebac6ccb0
Content-Length: 1300
X-Content-Type-Options: nosniff