Home
Version 3
Organizations API

Organizations API

Remove User from the Organization

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

Request

Route

DELETE /v2/organizations/05eafdc8-5784-4826-a761-d7f98ebc415c/users/uaa-id-29

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwIiwiZW1haWwiOiJlbWFpbC0yMkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3MzIzOTU2fQ.t8Ut7OznB-xQMHGwhyy2SiuUTJ3je7TSK3IOKYN4CQ8
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/05eafdc8-5784-4826-a761-d7f98ebc415c/users/uaa-id-29" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwIiwiZW1haWwiOiJlbWFpbC0yMkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3MzIzOTU2fQ.t8Ut7OznB-xQMHGwhyy2SiuUTJ3je7TSK3IOKYN4CQ8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "05eafdc8-5784-4826-a761-d7f98ebc415c",
    "url": "/v2/organizations/05eafdc8-5784-4826-a761-d7f98ebc415c",
    "created_at": "2015-03-18T22:52:36Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-74",
    "billing_enabled": false,
    "quota_definition_guid": "5aa89fc2-ec4f-4446-80fc-7d35661165c9",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/5aa89fc2-ec4f-4446-80fc-7d35661165c9",
    "spaces_url": "/v2/organizations/05eafdc8-5784-4826-a761-d7f98ebc415c/spaces",
    "domains_url": "/v2/organizations/05eafdc8-5784-4826-a761-d7f98ebc415c/domains",
    "private_domains_url": "/v2/organizations/05eafdc8-5784-4826-a761-d7f98ebc415c/private_domains",
    "users_url": "/v2/organizations/05eafdc8-5784-4826-a761-d7f98ebc415c/users",
    "managers_url": "/v2/organizations/05eafdc8-5784-4826-a761-d7f98ebc415c/managers",
    "billing_managers_url": "/v2/organizations/05eafdc8-5784-4826-a761-d7f98ebc415c/billing_managers",
    "auditors_url": "/v2/organizations/05eafdc8-5784-4826-a761-d7f98ebc415c/auditors",
    "app_events_url": "/v2/organizations/05eafdc8-5784-4826-a761-d7f98ebc415c/app_events",
    "space_quota_definitions_url": "/v2/organizations/05eafdc8-5784-4826-a761-d7f98ebc415c/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c7854116-a325-49ce-bceb-8b636ac31b5f
Content-Length: 1298
X-Content-Type-Options: nosniff