Home
Version 3
Users API

Users API

Remove Organization from the User

DELETE /v2/users/:guid/organizations/:organization_guid

Request

Route

DELETE /v2/users/uaa-id-174/organizations/4d1bfa21-bf86-41a9-80ab-9ef191c931db

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NSIsImVtYWlsIjoiZW1haWwtMTI1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDN9.AI0ctM88uhUYb7cVxgLkQyXKB7aDBh3fUiq-LN7sx3U
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-174/organizations/4d1bfa21-bf86-41a9-80ab-9ef191c931db" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NSIsImVtYWlsIjoiZW1haWwtMTI1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDN9.AI0ctM88uhUYb7cVxgLkQyXKB7aDBh3fUiq-LN7sx3U" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-174",
    "url": "/v2/users/uaa-id-174",
    "created_at": "2015-03-10T23:11:43Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "94faa7f3-03fa-4157-943a-8c2e34c38925",
    "default_space_url": "/v2/spaces/94faa7f3-03fa-4157-943a-8c2e34c38925",
    "spaces_url": "/v2/users/uaa-id-174/spaces",
    "organizations_url": "/v2/users/uaa-id-174/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-174/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-174/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-174/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-174/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-174/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 38388f42-612d-42df-bf46-ad5331c410eb
Content-Length: 845
X-Content-Type-Options: nosniff