Associate Organization with the User
PUT /v2/users/:guid/organizations/:organization_guid
Request
Route
PUT /v2/users/uaa-id-361/organizations/5b82f7ee-049e-4fa7-802e-bf58f2ba1ede
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
organization_guid
|
The guid of the organization
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-361/organizations/5b82f7ee-049e-4fa7-802e-bf58f2ba1ede" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2MiIsImVtYWlsIjoiZW1haWwtMjQ2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MjV9.zij7iu20_Dpxj9POyXBthA0s6wdBtQoC_zETiEygDv0" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-361",
"url": "/v2/users/uaa-id-361",
"created_at": "2016-05-12T00:45:25Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "fe9fec37-0371-4d88-904c-01df16120d38",
"default_space_url": "/v2/spaces/fe9fec37-0371-4d88-904c-01df16120d38",
"spaces_url": "/v2/users/uaa-id-361/spaces",
"organizations_url": "/v2/users/uaa-id-361/organizations",
"managed_organizations_url": "/v2/users/uaa-id-361/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-361/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-361/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-361/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-361/audited_spaces"
}
}
Headers