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-37/managed_organizations/a27bf9c8-1c15-4623-b243-60abe74641e8

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5IiwiZW1haWwiOiJlbWFpbC0xOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5NjY0MTMzfQ.45ubp__giqWnnQlyKQ94BvPvv3Gpr3hRPAV1VCUjCbY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-37/managed_organizations/a27bf9c8-1c15-4623-b243-60abe74641e8" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5IiwiZW1haWwiOiJlbWFpbC0xOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5NjY0MTMzfQ.45ubp__giqWnnQlyKQ94BvPvv3Gpr3hRPAV1VCUjCbY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-37",
    "url": "/v2/users/uaa-id-37",
    "created_at": "2015-04-15T00:55:33Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "bc4806ea-f314-4c6e-a317-5995fd072c9f",
    "default_space_url": "/v2/spaces/bc4806ea-f314-4c6e-a317-5995fd072c9f",
    "spaces_url": "/v2/users/uaa-id-37/spaces",
    "organizations_url": "/v2/users/uaa-id-37/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-37/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-37/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-37/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-37/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-37/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 71c3990c-1630-4a0f-b383-486da56e366e
Content-Length: 836
X-Content-Type-Options: nosniff