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-189/organizations/9f11df36-a648-4295-942c-471cb79cc947

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE5MCIsImVtYWlsIjoiZW1haWwtMTIzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MDV9.2gC1H6ukH9VP7JpnluIKMA58lj2ykJTeOblPlMZ7lFM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-189/organizations/9f11df36-a648-4295-942c-471cb79cc947" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5MCIsImVtYWlsIjoiZW1haWwtMTIzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MDV9.2gC1H6ukH9VP7JpnluIKMA58lj2ykJTeOblPlMZ7lFM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-189",
    "url": "/v2/users/uaa-id-189",
    "created_at": "2015-04-07T19:11:45Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "b47f4607-9555-4c53-b044-fd5844699982",
    "default_space_url": "/v2/spaces/b47f4607-9555-4c53-b044-fd5844699982",
    "spaces_url": "/v2/users/uaa-id-189/spaces",
    "organizations_url": "/v2/users/uaa-id-189/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-189/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-189/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-189/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-189/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-189/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 43b27524-fa0d-4cba-9524-e273bd86f67a
Content-Length: 845
X-Content-Type-Options: nosniff