Home
Version 3
Organizations API

Organizations API

Remove User from the Organization

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

Request

Route

DELETE /v2/organizations/e351247e-0622-421b-8d97-3cd98994596f/users/uaa-id-153

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/e351247e-0622-421b-8d97-3cd98994596f/users/uaa-id-153" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NCIsImVtYWlsIjoiZW1haWwtMTEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDR9.cou7z2L3x3EnKjvKHOPuoaTL0N2ii44QrNQjLSucPVU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "e351247e-0622-421b-8d97-3cd98994596f",
    "url": "/v2/organizations/e351247e-0622-421b-8d97-3cd98994596f",
    "created_at": "2015-03-05T19:15:44Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-484",
    "billing_enabled": false,
    "quota_definition_guid": "10071d41-c344-43f4-a014-4bd2687635b0",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/10071d41-c344-43f4-a014-4bd2687635b0",
    "spaces_url": "/v2/organizations/e351247e-0622-421b-8d97-3cd98994596f/spaces",
    "domains_url": "/v2/organizations/e351247e-0622-421b-8d97-3cd98994596f/domains",
    "private_domains_url": "/v2/organizations/e351247e-0622-421b-8d97-3cd98994596f/private_domains",
    "users_url": "/v2/organizations/e351247e-0622-421b-8d97-3cd98994596f/users",
    "managers_url": "/v2/organizations/e351247e-0622-421b-8d97-3cd98994596f/managers",
    "billing_managers_url": "/v2/organizations/e351247e-0622-421b-8d97-3cd98994596f/billing_managers",
    "auditors_url": "/v2/organizations/e351247e-0622-421b-8d97-3cd98994596f/auditors",
    "app_events_url": "/v2/organizations/e351247e-0622-421b-8d97-3cd98994596f/app_events",
    "space_quota_definitions_url": "/v2/organizations/e351247e-0622-421b-8d97-3cd98994596f/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c5446189-6be4-47c0-a6d6-948d54dddf58
Content-Length: 1299
X-Content-Type-Options: nosniff