Home
Version 3
Users API

Users API

Remove Managed Organization from the User

DELETE /v2/users/:guid/managed_organizations/:managed_organization_guid

Request

Route

DELETE /v2/users/uaa-id-444/managed_organizations/ad02f988-f3dd-4f9b-b5fa-1e6912fd54c2

Parameters

Name Description Valid Values Example Values
guid The guid of the User
managed_organization_guid The guid of the managed_organization

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0NiIsImVtYWlsIjoiZW1haWwtMzI3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NTl9.riITWQGihsH-AV4iXl81lPqIbRSi-Nr1h_5sGqLzoUM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-444/managed_organizations/ad02f988-f3dd-4f9b-b5fa-1e6912fd54c2" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0NiIsImVtYWlsIjoiZW1haWwtMzI3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NTl9.riITWQGihsH-AV4iXl81lPqIbRSi-Nr1h_5sGqLzoUM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 0dda7bce-e867-45ef-a859-9c007ae07fb6
X-Content-Type-Options: nosniff