Disassociate Billing Manager with the Organization by Username
DELETE v2/organizations/:guid/billing_managers
Request
Route
DELETE v2/organizations/3e57a453-48c2-4874-a37e-5b84b0fe4838/billing_managers
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
|
|
|
|
{
"username": "billing_manager@example.com"
}
Headers
cURL
curl "https://api.[your-domain.com]v2/organizations/3e57a453-48c2-4874-a37e-5b84b0fe4838/billing_managers" -d '{
"username": "billing_manager@example.com"
}' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMSIsImVtYWlsIjoiZW1haWwtMTU2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODd9.woR7qhMhuoKDspmztvzRor6Tw-jmqwRUQl_SMHWtS8w" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "3e57a453-48c2-4874-a37e-5b84b0fe4838",
"url": "/v2/organizations/3e57a453-48c2-4874-a37e-5b84b0fe4838",
"created_at": "2015-12-22T18:28:07Z",
"updated_at": null
},
"entity": {
"name": "name-751",
"billing_enabled": false,
"quota_definition_guid": "d945985e-b26f-4083-8d93-e098f992f2b7",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/d945985e-b26f-4083-8d93-e098f992f2b7",
"spaces_url": "/v2/organizations/3e57a453-48c2-4874-a37e-5b84b0fe4838/spaces",
"domains_url": "/v2/organizations/3e57a453-48c2-4874-a37e-5b84b0fe4838/domains",
"private_domains_url": "/v2/organizations/3e57a453-48c2-4874-a37e-5b84b0fe4838/private_domains",
"users_url": "/v2/organizations/3e57a453-48c2-4874-a37e-5b84b0fe4838/users",
"managers_url": "/v2/organizations/3e57a453-48c2-4874-a37e-5b84b0fe4838/managers",
"billing_managers_url": "/v2/organizations/3e57a453-48c2-4874-a37e-5b84b0fe4838/billing_managers",
"auditors_url": "/v2/organizations/3e57a453-48c2-4874-a37e-5b84b0fe4838/auditors",
"app_events_url": "/v2/organizations/3e57a453-48c2-4874-a37e-5b84b0fe4838/app_events",
"space_quota_definitions_url": "/v2/organizations/3e57a453-48c2-4874-a37e-5b84b0fe4838/space_quota_definitions"
}
}
Headers