Home
Version 3
Organizations API

Organizations API

Remove User from the Organization

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

Request

Route

DELETE /v2/organizations/44f3c326-839a-43b5-9132-92c984faae37/users/uaa-id-337

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/44f3c326-839a-43b5-9132-92c984faae37/users/uaa-id-337" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzOCIsImVtYWlsIjoiZW1haWwtMjUyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNTB9.A8dnY-m5uCwMKGmKT_gWwzqErf4HsS3d4tJ1_7zTrBU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "44f3c326-839a-43b5-9132-92c984faae37",
    "url": "/v2/organizations/44f3c326-839a-43b5-9132-92c984faae37",
    "created_at": "2015-04-15T00:55:50Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1995",
    "billing_enabled": false,
    "quota_definition_guid": "fc84e934-b9d9-4edb-a6fc-9454c1f38630",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/fc84e934-b9d9-4edb-a6fc-9454c1f38630",
    "spaces_url": "/v2/organizations/44f3c326-839a-43b5-9132-92c984faae37/spaces",
    "domains_url": "/v2/organizations/44f3c326-839a-43b5-9132-92c984faae37/domains",
    "private_domains_url": "/v2/organizations/44f3c326-839a-43b5-9132-92c984faae37/private_domains",
    "users_url": "/v2/organizations/44f3c326-839a-43b5-9132-92c984faae37/users",
    "managers_url": "/v2/organizations/44f3c326-839a-43b5-9132-92c984faae37/managers",
    "billing_managers_url": "/v2/organizations/44f3c326-839a-43b5-9132-92c984faae37/billing_managers",
    "auditors_url": "/v2/organizations/44f3c326-839a-43b5-9132-92c984faae37/auditors",
    "app_events_url": "/v2/organizations/44f3c326-839a-43b5-9132-92c984faae37/app_events",
    "space_quota_definitions_url": "/v2/organizations/44f3c326-839a-43b5-9132-92c984faae37/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 057b04a3-560c-401d-b27e-6f5fcc43d39e
Content-Length: 1300
X-Content-Type-Options: nosniff