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

Route

DELETE /v2/organizations/a820b595-574b-4ecc-b0f0-cac5806b5a97/users/uaa-id-17

cURL

curl "https://api.[your-domain.com]/v2/organizations/a820b595-574b-4ecc-b0f0-cac5806b5a97/users/uaa-id-17" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4IiwiZW1haWwiOiJlbWFpbC0xNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0NDcxNjg1fQ.aXroa2TsRvOtrDGK5EMjhsH6yNgG09UhpKnTpSgeDs8" \
	-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: fb75d387-d02c-4564-b719-cf5e3c33e726
Content-Length: 1298
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "a820b595-574b-4ecc-b0f0-cac5806b5a97",
    "url": "/v2/organizations/a820b595-574b-4ecc-b0f0-cac5806b5a97",
    "created_at": "2015-02-13T22:34:45Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-43",
    "billing_enabled": false,
    "quota_definition_guid": "3661938b-c9e8-4bcc-b873-c2fd340cfa75",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/3661938b-c9e8-4bcc-b873-c2fd340cfa75",
    "spaces_url": "/v2/organizations/a820b595-574b-4ecc-b0f0-cac5806b5a97/spaces",
    "domains_url": "/v2/organizations/a820b595-574b-4ecc-b0f0-cac5806b5a97/domains",
    "private_domains_url": "/v2/organizations/a820b595-574b-4ecc-b0f0-cac5806b5a97/private_domains",
    "users_url": "/v2/organizations/a820b595-574b-4ecc-b0f0-cac5806b5a97/users",
    "managers_url": "/v2/organizations/a820b595-574b-4ecc-b0f0-cac5806b5a97/managers",
    "billing_managers_url": "/v2/organizations/a820b595-574b-4ecc-b0f0-cac5806b5a97/billing_managers",
    "auditors_url": "/v2/organizations/a820b595-574b-4ecc-b0f0-cac5806b5a97/auditors",
    "app_events_url": "/v2/organizations/a820b595-574b-4ecc-b0f0-cac5806b5a97/app_events",
    "space_quota_definitions_url": "/v2/organizations/a820b595-574b-4ecc-b0f0-cac5806b5a97/space_quota_definitions"
  }
}