Associate Organization with the User
PUT /v2/users/:guid/organizations/:organization_guid
Request
Route
PUT /v2/users/uaa-id-171/organizations/1e794543-e560-4dfe-96f8-1fb922c17093
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-171/organizations/1e794543-e560-4dfe-96f8-1fb922c17093" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MiIsImVtYWlsIjoiZW1haWwtMTI0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NDV9.nf5mvFhb-Wvc7tn9H6yd97g_I5Dr-zBK_O6XBJlznX4" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-171",
"url": "/v2/users/uaa-id-171",
"created_at": "2016-04-06T00:17:25Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "55f6133a-0532-4211-9506-be7226031972",
"default_space_url": "/v2/spaces/55f6133a-0532-4211-9506-be7226031972",
"spaces_url": "/v2/users/uaa-id-171/spaces",
"organizations_url": "/v2/users/uaa-id-171/organizations",
"managed_organizations_url": "/v2/users/uaa-id-171/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-171/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-171/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-171/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-171/audited_spaces"
}
}
Headers