Home
Version 3
Organizations API

Organizations API

Remove User from the Organization

DELETE /v2/organizations/:guid/users/:user_guid

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization

Request

Headers

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

Route

DELETE /v2/organizations/211f7701-2715-479b-afbc-811f767fb131/users/uaa-id-110

cURL

curl "https://api.[your-domain.com]/v2/organizations/211f7701-2715-479b-afbc-811f767fb131/users/uaa-id-110" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExMSIsImVtYWlsIjoiZW1haWwtOTVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxNzQ2MjM1N30.mXGYzMM_JaR25AhBdXfajAgFCMfP3VlQwA75ueY5MKk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 1116c63a-e216-4e4d-8dec-e8967d42907f
Content-Length: 1304
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "211f7701-2715-479b-afbc-811f767fb131",
    "url": "/v2/organizations/211f7701-2715-479b-afbc-811f767fb131",
    "created_at": "2014-11-24T19:32:37+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-505",
    "billing_enabled": false,
    "quota_definition_guid": "221c8e4c-a25f-455d-9514-ee4f0252285a",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/221c8e4c-a25f-455d-9514-ee4f0252285a",
    "spaces_url": "/v2/organizations/211f7701-2715-479b-afbc-811f767fb131/spaces",
    "domains_url": "/v2/organizations/211f7701-2715-479b-afbc-811f767fb131/domains",
    "private_domains_url": "/v2/organizations/211f7701-2715-479b-afbc-811f767fb131/private_domains",
    "users_url": "/v2/organizations/211f7701-2715-479b-afbc-811f767fb131/users",
    "managers_url": "/v2/organizations/211f7701-2715-479b-afbc-811f767fb131/managers",
    "billing_managers_url": "/v2/organizations/211f7701-2715-479b-afbc-811f767fb131/billing_managers",
    "auditors_url": "/v2/organizations/211f7701-2715-479b-afbc-811f767fb131/auditors",
    "app_events_url": "/v2/organizations/211f7701-2715-479b-afbc-811f767fb131/app_events",
    "space_quota_definitions_url": "/v2/organizations/211f7701-2715-479b-afbc-811f767fb131/space_quota_definitions"
  }
}