Home
Version 3
Organizations API

Organizations API

Remove User from the Organization

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

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNSIsImVtYWlsIjoiZW1haWwtMjU5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxNDJ9.6h4zsWz41M3qoTSy0-yJ4xpYsxeQOOLuk2MEfjI5MXY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/organizations/8705a350-5f76-433b-8404-e28b0be64127/users/uaa-id-334

cURL

curl "https://api.[your-domain.com]/v2/organizations/8705a350-5f76-433b-8404-e28b0be64127/users/uaa-id-334" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNSIsImVtYWlsIjoiZW1haWwtMjU5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxNDJ9.6h4zsWz41M3qoTSy0-yJ4xpYsxeQOOLuk2MEfjI5MXY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c4af6510-41af-46b5-9d47-1f91a198c482
Content-Length: 1300
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "8705a350-5f76-433b-8404-e28b0be64127",
    "url": "/v2/organizations/8705a350-5f76-433b-8404-e28b0be64127",
    "created_at": "2015-02-12T01:42:22Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1967",
    "billing_enabled": false,
    "quota_definition_guid": "7e50b843-154f-4d23-9c10-1bba6ef324c0",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/7e50b843-154f-4d23-9c10-1bba6ef324c0",
    "spaces_url": "/v2/organizations/8705a350-5f76-433b-8404-e28b0be64127/spaces",
    "domains_url": "/v2/organizations/8705a350-5f76-433b-8404-e28b0be64127/domains",
    "private_domains_url": "/v2/organizations/8705a350-5f76-433b-8404-e28b0be64127/private_domains",
    "users_url": "/v2/organizations/8705a350-5f76-433b-8404-e28b0be64127/users",
    "managers_url": "/v2/organizations/8705a350-5f76-433b-8404-e28b0be64127/managers",
    "billing_managers_url": "/v2/organizations/8705a350-5f76-433b-8404-e28b0be64127/billing_managers",
    "auditors_url": "/v2/organizations/8705a350-5f76-433b-8404-e28b0be64127/auditors",
    "app_events_url": "/v2/organizations/8705a350-5f76-433b-8404-e28b0be64127/app_events",
    "space_quota_definitions_url": "/v2/organizations/8705a350-5f76-433b-8404-e28b0be64127/space_quota_definitions"
  }
}