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-273/organizations/e411bfa7-d7ae-47cb-89ab-71d5ceb19c46

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-273/organizations/e411bfa7-d7ae-47cb-89ab-71d5ceb19c46" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NCIsImVtYWlsIjoiZW1haWwtMTgwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5Mzh9.IEV0vASqhKjvXBw_gYKbnfdN62kx_f4SLHOHVMz4N10" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-273",
    "url": "/v2/users/uaa-id-273",
    "created_at": "2015-10-07T00:35:38Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "08028a5b-38ca-43e6-b042-1e0fb3a78442",
    "default_space_url": "/v2/spaces/08028a5b-38ca-43e6-b042-1e0fb3a78442",
    "spaces_url": "/v2/users/uaa-id-273/spaces",
    "organizations_url": "/v2/users/uaa-id-273/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-273/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-273/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-273/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-273/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-273/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ce494d3f-9549-4866-8519-a9ee48cc804c
Content-Length: 845
X-Content-Type-Options: nosniff