Home
Version 3
Organizations API

Organizations API

Disassociate User with the Organization by Username

DELETE v2/organizations/:guid/users

Request

Route

DELETE v2/organizations/f996b04a-68c3-4af7-bbf1-a13fd3880ae6/users

Parameters

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

Body

Name Description Default Valid Values Example Values
username The user's name
  • user@example.com
{
  "username": "user@example.com"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNiIsImVtYWlsIjoiZW1haWwtNjNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjI5OX0.4911l1-Jga4ZUq0e7PllQnHsBU6ZN4kaiBOCNJ3yxRM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/f996b04a-68c3-4af7-bbf1-a13fd3880ae6/users" -d '{
  "username": "user@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNiIsImVtYWlsIjoiZW1haWwtNjNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjI5OX0.4911l1-Jga4ZUq0e7PllQnHsBU6ZN4kaiBOCNJ3yxRM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "f996b04a-68c3-4af7-bbf1-a13fd3880ae6",
    "url": "/v2/organizations/f996b04a-68c3-4af7-bbf1-a13fd3880ae6",
    "created_at": "2015-10-13T17:31:39Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-237",
    "billing_enabled": false,
    "quota_definition_guid": "641bbebe-3150-4bc9-bb28-18073b256952",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/641bbebe-3150-4bc9-bb28-18073b256952",
    "spaces_url": "/v2/organizations/f996b04a-68c3-4af7-bbf1-a13fd3880ae6/spaces",
    "domains_url": "/v2/organizations/f996b04a-68c3-4af7-bbf1-a13fd3880ae6/domains",
    "private_domains_url": "/v2/organizations/f996b04a-68c3-4af7-bbf1-a13fd3880ae6/private_domains",
    "users_url": "/v2/organizations/f996b04a-68c3-4af7-bbf1-a13fd3880ae6/users",
    "managers_url": "/v2/organizations/f996b04a-68c3-4af7-bbf1-a13fd3880ae6/managers",
    "billing_managers_url": "/v2/organizations/f996b04a-68c3-4af7-bbf1-a13fd3880ae6/billing_managers",
    "auditors_url": "/v2/organizations/f996b04a-68c3-4af7-bbf1-a13fd3880ae6/auditors",
    "app_events_url": "/v2/organizations/f996b04a-68c3-4af7-bbf1-a13fd3880ae6/app_events",
    "space_quota_definitions_url": "/v2/organizations/f996b04a-68c3-4af7-bbf1-a13fd3880ae6/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: bf6ad297-43d2-4f9e-a3a8-56a089170916
Content-Length: 1299
X-Content-Type-Options: nosniff