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

Route

DELETE /v2/organizations/19d19204-4506-408f-a480-63a35705a602/users/uaa-id-253

cURL

curl "https://api.[your-domain.com]/v2/organizations/19d19204-4506-408f-a480-63a35705a602/users/uaa-id-253" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NCIsImVtYWlsIjoiZW1haWwtMjAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzZ9.jtGz3NkMilDV6o3jjYPDTPp7kI1j6fzlgdXLgbNkQ1c" \
	-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: 3dd67a32-a86c-4a67-949b-f1f892406a90
Content-Length: 1305
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "19d19204-4506-408f-a480-63a35705a602",
    "url": "/v2/organizations/19d19204-4506-408f-a480-63a35705a602",
    "created_at": "2014-12-24T01:39:36+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-1690",
    "billing_enabled": false,
    "quota_definition_guid": "67253e1b-b66f-4ba4-9a63-2f0f4669ca9d",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/67253e1b-b66f-4ba4-9a63-2f0f4669ca9d",
    "spaces_url": "/v2/organizations/19d19204-4506-408f-a480-63a35705a602/spaces",
    "domains_url": "/v2/organizations/19d19204-4506-408f-a480-63a35705a602/domains",
    "private_domains_url": "/v2/organizations/19d19204-4506-408f-a480-63a35705a602/private_domains",
    "users_url": "/v2/organizations/19d19204-4506-408f-a480-63a35705a602/users",
    "managers_url": "/v2/organizations/19d19204-4506-408f-a480-63a35705a602/managers",
    "billing_managers_url": "/v2/organizations/19d19204-4506-408f-a480-63a35705a602/billing_managers",
    "auditors_url": "/v2/organizations/19d19204-4506-408f-a480-63a35705a602/auditors",
    "app_events_url": "/v2/organizations/19d19204-4506-408f-a480-63a35705a602/app_events",
    "space_quota_definitions_url": "/v2/organizations/19d19204-4506-408f-a480-63a35705a602/space_quota_definitions"
  }
}