Home
Version 3
Organizations API

Organizations API

Remove User from the Organization

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

Request

Route

DELETE /v2/organizations/9cecdeec-6070-4120-9653-0dcaf20d8020/users/uaa-id-104

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/9cecdeec-6070-4120-9653-0dcaf20d8020/users/uaa-id-104" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwNSIsImVtYWlsIjoiZW1haWwtNjZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MjYwMTUyOX0.pfn0gEOIP7txsgH_dkw5ZcShTDD9MWm1Ppl9F3Mr6ZY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "9cecdeec-6070-4120-9653-0dcaf20d8020",
    "url": "/v2/organizations/9cecdeec-6070-4120-9653-0dcaf20d8020",
    "created_at": "2015-09-11T18:38:49Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-278",
    "billing_enabled": false,
    "quota_definition_guid": "2c9571e0-9f5e-4529-afe3-0dcdc7535976",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/2c9571e0-9f5e-4529-afe3-0dcdc7535976",
    "spaces_url": "/v2/organizations/9cecdeec-6070-4120-9653-0dcaf20d8020/spaces",
    "domains_url": "/v2/organizations/9cecdeec-6070-4120-9653-0dcaf20d8020/domains",
    "private_domains_url": "/v2/organizations/9cecdeec-6070-4120-9653-0dcaf20d8020/private_domains",
    "users_url": "/v2/organizations/9cecdeec-6070-4120-9653-0dcaf20d8020/users",
    "managers_url": "/v2/organizations/9cecdeec-6070-4120-9653-0dcaf20d8020/managers",
    "billing_managers_url": "/v2/organizations/9cecdeec-6070-4120-9653-0dcaf20d8020/billing_managers",
    "auditors_url": "/v2/organizations/9cecdeec-6070-4120-9653-0dcaf20d8020/auditors",
    "app_events_url": "/v2/organizations/9cecdeec-6070-4120-9653-0dcaf20d8020/app_events",
    "space_quota_definitions_url": "/v2/organizations/9cecdeec-6070-4120-9653-0dcaf20d8020/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2ca08477-7027-4fee-8a5e-92e8d6db8fb6
Content-Length: 1299
X-Content-Type-Options: nosniff