Organizations API

Remove Billing Manager from the Organization by Username

POST v2/organizations/:guid/billing_managers/remove

Request

Route

POST v2/organizations/aebdec49-ec85-4e94-8815-acdf534a924a/billing_managers/remove

Parameters

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

Body

Name Description Default Valid Values Example Values
username The user's name
origin The UAA origin
  • ldap
  • uaa
{
  "username": "[email protected]",
  "origin": "ldap"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwOSIsImVtYWlsIjoiZW1haWwtMTU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTR9.sG1dKjuOZ8bjduBIm0RjvaNZdgnJzX9-Tah7GQ-TAj4
Host: example.org
Content-Type: application/json
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/aebdec49-ec85-4e94-8815-acdf534a924a/billing_managers/remove" -d '{
      "username": "[email protected]",
      "origin": "ldap"
    }' -X POST \
      -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwOSIsImVtYWlsIjoiZW1haWwtMTU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTR9.sG1dKjuOZ8bjduBIm0RjvaNZdgnJzX9-Tah7GQ-TAj4" \
      -H "Host: example.org" \
      -H "Content-Type: application/json" \
      -H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 3d622ea3-b72f-445c-b58e-e51124f775d0
X-Content-Type-Options: nosniff