Associate Organization with the User
PUT /v2/users/:guid/organizations/:organization_guid
Request
Route
PUT /v2/users/uaa-id-301/organizations/2f0bb84e-5229-4dd4-b053-855910833d2a
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-301/organizations/2f0bb84e-5229-4dd4-b053-855910833d2a" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMiIsImVtYWlsIjoiZW1haWwtMjA2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTZ9.J5E4MymhwFe5Y92VStjcIGfa8Hk_AIA6cKYpCQLfN60" \
-H "Host: example.org" \
-H "Content-Type: application/json" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-301",
"url": "/v2/users/uaa-id-301",
"created_at": "2016-06-08T16:41:36Z",
"updated_at": "2016-06-08T16:41:26Z"
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "10db6c03-3e24-4a2a-b311-a28b541376f1",
"default_space_url": "/v2/spaces/10db6c03-3e24-4a2a-b311-a28b541376f1",
"spaces_url": "/v2/users/uaa-id-301/spaces",
"organizations_url": "/v2/users/uaa-id-301/organizations",
"managed_organizations_url": "/v2/users/uaa-id-301/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-301/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-301/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-301/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-301/audited_spaces"
}
}
Headers