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-395/billing_managed_organizations/e0729da0-7df1-4b70-a9e4-84e114d3b0b4

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.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NiIsImVtYWlsIjoiZW1haWwtMjgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NDl9.CgCq472sZCcvcWL5OT9lhoOe7S9iLCJG3U-3z-baqkg
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-395/billing_managed_organizations/e0729da0-7df1-4b70-a9e4-84e114d3b0b4" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NiIsImVtYWlsIjoiZW1haWwtMjgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NDl9.CgCq472sZCcvcWL5OT9lhoOe7S9iLCJG3U-3z-baqkg" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-395",
    "url": "/v2/users/uaa-id-395",
    "created_at": "2015-09-11T18:39:09Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "6eeee8e3-773a-4614-b77c-1c747b3658f7",
    "default_space_url": "/v2/spaces/6eeee8e3-773a-4614-b77c-1c747b3658f7",
    "spaces_url": "/v2/users/uaa-id-395/spaces",
    "organizations_url": "/v2/users/uaa-id-395/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-395/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-395/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-395/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-395/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-395/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 1cede9c4-31ed-47f4-ab00-fe1b78dbfe5f
Content-Length: 845
X-Content-Type-Options: nosniff