Associate User with the Organization
PUT /v2/organizations/:guid/users/:user_guid
Request
Route
PUT /v2/organizations/56af42cb-db7d-47cc-981b-7983856a24fe/users/uaa-id-354
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Organization
|
|
|
user_guid
|
The guid of the user
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/organizations/56af42cb-db7d-47cc-981b-7983856a24fe/users/uaa-id-354" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1NSIsImVtYWlsIjoiZW1haWwtMjU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTh9.-hV2XPfP8_KqnNDZ90FZT72pgcj2Hh4oo45ZruUWe1I" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "56af42cb-db7d-47cc-981b-7983856a24fe",
"url": "/v2/organizations/56af42cb-db7d-47cc-981b-7983856a24fe",
"created_at": "2015-07-06T23:23:18Z",
"updated_at": null
},
"entity": {
"name": "name-2173",
"billing_enabled": false,
"quota_definition_guid": "d956e9bd-af17-485e-801e-fd0ecd4fdc05",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/d956e9bd-af17-485e-801e-fd0ecd4fdc05",
"spaces_url": "/v2/organizations/56af42cb-db7d-47cc-981b-7983856a24fe/spaces",
"domains_url": "/v2/organizations/56af42cb-db7d-47cc-981b-7983856a24fe/domains",
"private_domains_url": "/v2/organizations/56af42cb-db7d-47cc-981b-7983856a24fe/private_domains",
"users_url": "/v2/organizations/56af42cb-db7d-47cc-981b-7983856a24fe/users",
"managers_url": "/v2/organizations/56af42cb-db7d-47cc-981b-7983856a24fe/managers",
"billing_managers_url": "/v2/organizations/56af42cb-db7d-47cc-981b-7983856a24fe/billing_managers",
"auditors_url": "/v2/organizations/56af42cb-db7d-47cc-981b-7983856a24fe/auditors",
"app_events_url": "/v2/organizations/56af42cb-db7d-47cc-981b-7983856a24fe/app_events",
"space_quota_definitions_url": "/v2/organizations/56af42cb-db7d-47cc-981b-7983856a24fe/space_quota_definitions"
}
}
Headers