Associate Billing Managed Organization with the User
PUT /v2/users/:guid/billing_managed_organizations/:billing_managed_organization_guid
Fields
Name |
Description |
Default |
Valid Values |
Example Values |
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
Request
Headers
Route
PUT /v2/users/uaa-id-41/billing_managed_organizations/1cdf1a7d-ee09-4faa-9978-ec4ca77d6df1
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-41/billing_managed_organizations/1cdf1a7d-ee09-4faa-9978-ec4ca77d6df1" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyIiwiZW1haWwiOiJlbWFpbC0yNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MzEwMTIwfQ.Kiu64jNFZ6g2f12AV7EiaL1wfaiJ2spd7415rPVg054" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-41",
"url": "/v2/users/uaa-id-41",
"created_at": "2015-02-12T01:42:00Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "daadd270-50b9-4341-84a0-0ef543c9082a",
"default_space_url": "/v2/spaces/daadd270-50b9-4341-84a0-0ef543c9082a",
"spaces_url": "/v2/users/uaa-id-41/spaces",
"organizations_url": "/v2/users/uaa-id-41/organizations",
"managed_organizations_url": "/v2/users/uaa-id-41/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-41/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-41/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-41/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-41/audited_spaces"
}
}