Remove Organization from the User
DELETE /v2/users/:guid/organizations/:organization_guid
Request
Route
DELETE /v2/users/uaa-id-270/organizations/10470bdc-8d95-48da-ab90-8f4b4c55eeb2
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-270/organizations/10470bdc-8d95-48da-ab90-8f4b4c55eeb2" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MSIsImVtYWlsIjoiZW1haWwtMTg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NzB9.mTxXAPBcDYhGuZWpmf8eCJ_MG6RvAFVKSqeG-3_kUnM" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-270",
"url": "/v2/users/uaa-id-270",
"created_at": "2015-03-03T00:51:10Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "0902efbc-83d9-4c2b-8fb8-14889f18cee5",
"default_space_url": "/v2/spaces/0902efbc-83d9-4c2b-8fb8-14889f18cee5",
"spaces_url": "/v2/users/uaa-id-270/spaces",
"organizations_url": "/v2/users/uaa-id-270/organizations",
"managed_organizations_url": "/v2/users/uaa-id-270/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-270/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-270/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-270/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-270/audited_spaces"
}
}
Headers