Home
Version 3
Organizations API

Organizations API

Remove User from the Organization

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

Request

Route

DELETE /v2/organizations/42544016-08f2-494b-87d7-85421d11392a/users/uaa-id-77

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc4IiwiZW1haWwiOiJlbWFpbC00M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQxNjYyNTk3fQ.tGUmuqaCMRi-iherXpIBFvqgTxvgvk0OGHhZFqnDnOQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/42544016-08f2-494b-87d7-85421d11392a/users/uaa-id-77" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc4IiwiZW1haWwiOiJlbWFpbC00M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQxNjYyNTk3fQ.tGUmuqaCMRi-iherXpIBFvqgTxvgvk0OGHhZFqnDnOQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "42544016-08f2-494b-87d7-85421d11392a",
    "url": "/v2/organizations/42544016-08f2-494b-87d7-85421d11392a",
    "created_at": "2015-08-31T21:49:57Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-282",
    "billing_enabled": false,
    "quota_definition_guid": "15a7e704-cedd-4dbf-9f4d-95fe9518e1ed",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/15a7e704-cedd-4dbf-9f4d-95fe9518e1ed",
    "spaces_url": "/v2/organizations/42544016-08f2-494b-87d7-85421d11392a/spaces",
    "domains_url": "/v2/organizations/42544016-08f2-494b-87d7-85421d11392a/domains",
    "private_domains_url": "/v2/organizations/42544016-08f2-494b-87d7-85421d11392a/private_domains",
    "users_url": "/v2/organizations/42544016-08f2-494b-87d7-85421d11392a/users",
    "managers_url": "/v2/organizations/42544016-08f2-494b-87d7-85421d11392a/managers",
    "billing_managers_url": "/v2/organizations/42544016-08f2-494b-87d7-85421d11392a/billing_managers",
    "auditors_url": "/v2/organizations/42544016-08f2-494b-87d7-85421d11392a/auditors",
    "app_events_url": "/v2/organizations/42544016-08f2-494b-87d7-85421d11392a/app_events",
    "space_quota_definitions_url": "/v2/organizations/42544016-08f2-494b-87d7-85421d11392a/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: bb8ed25b-8ce2-4e73-b06a-c5936bccec90
Content-Length: 1299
X-Content-Type-Options: nosniff