Home
Version 3
Users API

Users API

Remove Billing Managed Organization from the User

DELETE /v2/users/:guid/billing_managed_organizations/:billing_managed_organization_guid

Request

Route

DELETE /v2/users/uaa-id-7/billing_managed_organizations/9c05680f-0026-409d-a34d-e6bf1677a289

Parameters

Name Description Valid Values Example Values
guid The guid of the User
billing_managed_organization_guid The guid of the billing managed organization

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgiLCJlbWFpbCI6ImVtYWlsLTVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzNjgyOTc3M30.J5_7hJsdRos-oSmbyHQDsFanv1goU4d_V-TsSvGit5g
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-7/billing_managed_organizations/9c05680f-0026-409d-a34d-e6bf1677a289" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgiLCJlbWFpbCI6ImVtYWlsLTVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzNjgyOTc3M30.J5_7hJsdRos-oSmbyHQDsFanv1goU4d_V-TsSvGit5g" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-7",
    "url": "/v2/users/uaa-id-7",
    "created_at": "2015-07-06T23:22:53Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "3fae9b74-90f6-4aa2-b876-d1d869243a21",
    "default_space_url": "/v2/spaces/3fae9b74-90f6-4aa2-b876-d1d869243a21",
    "spaces_url": "/v2/users/uaa-id-7/spaces",
    "organizations_url": "/v2/users/uaa-id-7/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-7/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-7/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-7/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-7/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-7/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ab5a35e4-46a2-4bf1-bbe5-eeb9b996223c
Content-Length: 827
X-Content-Type-Options: nosniff