Associate Billing Managed Organization with the User
PUT /v2/users/:guid/billing_managed_organizations/:billing_managed_organization_guid
Request
Route
PUT /v2/users/uaa-id-36/billing_managed_organizations/d23e0793-d9ba-42ea-8225-0f9ad954cbae
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
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-36/billing_managed_organizations/d23e0793-d9ba-42ea-8225-0f9ad954cbae" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3IiwiZW1haWwiOiJlbWFpbC0xN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1NTU3OTI4fQ.Of80E1BqSOpENFh19O8qmqJlwD4zlD8QDXDFAUW0o8M" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-36",
"url": "/v2/users/uaa-id-36",
"created_at": "2015-10-15T23:52:08Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "3af44131-c35b-4bf6-8a2b-70a22aa4ee5d",
"default_space_url": "/v2/spaces/3af44131-c35b-4bf6-8a2b-70a22aa4ee5d",
"spaces_url": "/v2/users/uaa-id-36/spaces",
"organizations_url": "/v2/users/uaa-id-36/organizations",
"managed_organizations_url": "/v2/users/uaa-id-36/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-36/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-36/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-36/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-36/audited_spaces"
}
}
Headers