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-224/organizations/ee06704c-29ec-42bd-a0d8-62164f6841b2

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.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNSIsImVtYWlsIjoiZW1haWwtMTcyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5Njl9.1_1OB5Y471myKjgo4lLy9fSmweLVH9sjQLtf4jjjhVk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-224/organizations/ee06704c-29ec-42bd-a0d8-62164f6841b2" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNSIsImVtYWlsIjoiZW1haWwtMTcyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5Njl9.1_1OB5Y471myKjgo4lLy9fSmweLVH9sjQLtf4jjjhVk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-224",
    "url": "/v2/users/uaa-id-224",
    "created_at": "2015-03-18T22:52:49Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "a5f21a92-4170-4513-82d2-c86f4f225478",
    "default_space_url": "/v2/spaces/a5f21a92-4170-4513-82d2-c86f4f225478",
    "spaces_url": "/v2/users/uaa-id-224/spaces",
    "organizations_url": "/v2/users/uaa-id-224/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-224/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-224/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-224/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-224/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-224/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: cafd54ba-e1dc-4ded-ac36-e4ebf2588b01
Content-Length: 845
X-Content-Type-Options: nosniff