Associate Organization with the User
PUT /v2/users/:guid/organizations/:organization_guid
Request
Route
PUT /v2/users/uaa-id-27/organizations/3990f722-f5bb-44bc-8d8b-8809f862cab8
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-27/organizations/3990f722-f5bb-44bc-8d8b-8809f862cab8" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4IiwiZW1haWwiOiJlbWFpbC0xNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMzOTgxMDk2fQ.65Ai4MyRPVOtOS_sm-zt1F-WYHL4BtsqA87hJNjlDso" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-27",
"url": "/v2/users/uaa-id-27",
"created_at": "2015-06-04T00:04:56Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "32706774-7786-4527-80b6-343b5444e165",
"default_space_url": "/v2/spaces/32706774-7786-4527-80b6-343b5444e165",
"spaces_url": "/v2/users/uaa-id-27/spaces",
"organizations_url": "/v2/users/uaa-id-27/organizations",
"managed_organizations_url": "/v2/users/uaa-id-27/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-27/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-27/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-27/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-27/audited_spaces"
}
}
Headers