Home
Version 3
Organizations API

Organizations API

Remove User from the Organization

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

Request

Route

DELETE /v2/organizations/a7bfd1ba-3148-4df4-bfcf-ac7f9aad13a8/users/uaa-id-46

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/a7bfd1ba-3148-4df4-bfcf-ac7f9aad13a8/users/uaa-id-46" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ3IiwiZW1haWwiOiJlbWFpbC00M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyNzc0OTgxfQ.-gc_xs9kj2WEp-A8idlzFS7blqHkCcdAMf9Ok02DKAw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "a7bfd1ba-3148-4df4-bfcf-ac7f9aad13a8",
    "url": "/v2/organizations/a7bfd1ba-3148-4df4-bfcf-ac7f9aad13a8",
    "created_at": "2015-05-21T01:03:01Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-215",
    "billing_enabled": false,
    "quota_definition_guid": "938fe039-f353-4c37-a76e-634ceea638fb",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/938fe039-f353-4c37-a76e-634ceea638fb",
    "spaces_url": "/v2/organizations/a7bfd1ba-3148-4df4-bfcf-ac7f9aad13a8/spaces",
    "domains_url": "/v2/organizations/a7bfd1ba-3148-4df4-bfcf-ac7f9aad13a8/domains",
    "private_domains_url": "/v2/organizations/a7bfd1ba-3148-4df4-bfcf-ac7f9aad13a8/private_domains",
    "users_url": "/v2/organizations/a7bfd1ba-3148-4df4-bfcf-ac7f9aad13a8/users",
    "managers_url": "/v2/organizations/a7bfd1ba-3148-4df4-bfcf-ac7f9aad13a8/managers",
    "billing_managers_url": "/v2/organizations/a7bfd1ba-3148-4df4-bfcf-ac7f9aad13a8/billing_managers",
    "auditors_url": "/v2/organizations/a7bfd1ba-3148-4df4-bfcf-ac7f9aad13a8/auditors",
    "app_events_url": "/v2/organizations/a7bfd1ba-3148-4df4-bfcf-ac7f9aad13a8/app_events",
    "space_quota_definitions_url": "/v2/organizations/a7bfd1ba-3148-4df4-bfcf-ac7f9aad13a8/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8e3e2e7a-42a2-4283-82e1-98f94c68502d
Content-Length: 1299
X-Content-Type-Options: nosniff