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-352/organizations/474ec566-eb4a-45f7-ae12-f00c4b227c6a

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MyIsImVtYWlsIjoiZW1haWwtMjI1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTJ9.aZJtp0nT214tGRiMxZhcu12b0lmtqblvbRWrYTgAy5M
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-352/organizations/474ec566-eb4a-45f7-ae12-f00c4b227c6a" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MyIsImVtYWlsIjoiZW1haWwtMjI1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTJ9.aZJtp0nT214tGRiMxZhcu12b0lmtqblvbRWrYTgAy5M" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-352",
    "url": "/v2/users/uaa-id-352",
    "created_at": "2015-09-30T23:30:52Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "01d523d9-5d2a-4129-805d-2919ae0ece7f",
    "default_space_url": "/v2/spaces/01d523d9-5d2a-4129-805d-2919ae0ece7f",
    "spaces_url": "/v2/users/uaa-id-352/spaces",
    "organizations_url": "/v2/users/uaa-id-352/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-352/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-352/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-352/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-352/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-352/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8ccace57-9dfd-4879-9545-3e08c9b59815
Content-Length: 845
X-Content-Type-Options: nosniff