Home
Version 3
Organizations API

Organizations API

Disassociate User with the Organization by Username

DELETE v2/organizations/:guid/users

Request

Route

DELETE v2/organizations/d409b778-4a48-499a-9ea9-5fdd840454c5/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.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0MyIsImVtYWlsIjoiZW1haWwtMzE4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzJ9.zc2Cn8ndN1U97e44XByM2S1SBK8BZ0aUmUb_fwXLoiE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/d409b778-4a48-499a-9ea9-5fdd840454c5/users" -d '{
  "username": "user@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0MyIsImVtYWlsIjoiZW1haWwtMzE4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzJ9.zc2Cn8ndN1U97e44XByM2S1SBK8BZ0aUmUb_fwXLoiE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "d409b778-4a48-499a-9ea9-5fdd840454c5",
    "url": "/v2/organizations/d409b778-4a48-499a-9ea9-5fdd840454c5",
    "created_at": "2015-10-15T23:52:52Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2454",
    "billing_enabled": false,
    "quota_definition_guid": "37528da7-53db-4589-8c00-ac422e5d2c05",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/37528da7-53db-4589-8c00-ac422e5d2c05",
    "spaces_url": "/v2/organizations/d409b778-4a48-499a-9ea9-5fdd840454c5/spaces",
    "domains_url": "/v2/organizations/d409b778-4a48-499a-9ea9-5fdd840454c5/domains",
    "private_domains_url": "/v2/organizations/d409b778-4a48-499a-9ea9-5fdd840454c5/private_domains",
    "users_url": "/v2/organizations/d409b778-4a48-499a-9ea9-5fdd840454c5/users",
    "managers_url": "/v2/organizations/d409b778-4a48-499a-9ea9-5fdd840454c5/managers",
    "billing_managers_url": "/v2/organizations/d409b778-4a48-499a-9ea9-5fdd840454c5/billing_managers",
    "auditors_url": "/v2/organizations/d409b778-4a48-499a-9ea9-5fdd840454c5/auditors",
    "app_events_url": "/v2/organizations/d409b778-4a48-499a-9ea9-5fdd840454c5/app_events",
    "space_quota_definitions_url": "/v2/organizations/d409b778-4a48-499a-9ea9-5fdd840454c5/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b892bd43-69cf-433b-b5d6-3354c9115f22
Content-Length: 1300
X-Content-Type-Options: nosniff