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-389/organizations/e2cf9bed-de44-42ed-97a1-646b0ada9915

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MCIsImVtYWlsIjoiZW1haWwtMjc4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NDl9.5HXtWAM4d-afqAfu7pWmyf7W_-dYeXSM_ybnpI4-wRA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-389/organizations/e2cf9bed-de44-42ed-97a1-646b0ada9915" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MCIsImVtYWlsIjoiZW1haWwtMjc4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NDl9.5HXtWAM4d-afqAfu7pWmyf7W_-dYeXSM_ybnpI4-wRA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-389",
    "url": "/v2/users/uaa-id-389",
    "created_at": "2015-09-11T18:39:09Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "68c7b88d-0d04-49b6-837d-aed788673852",
    "default_space_url": "/v2/spaces/68c7b88d-0d04-49b6-837d-aed788673852",
    "spaces_url": "/v2/users/uaa-id-389/spaces",
    "organizations_url": "/v2/users/uaa-id-389/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-389/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-389/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-389/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-389/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-389/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5804b09e-b8a0-4812-bcbe-54a565f92945
Content-Length: 845
X-Content-Type-Options: nosniff