Associate Organization with the User
PUT /v2/users/:guid/organizations/:organization_guid
Request
Route
PUT /v2/users/uaa-id-130/organizations/1556f23c-12ae-4d12-8a47-c88bd6c3487b
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-130/organizations/1556f23c-12ae-4d12-8a47-c88bd6c3487b" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMSIsImVtYWlsIjoiZW1haWwtOTdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzOTQyNjE5OH0.c25Oxu-z0oKFpMm4qCB_Sv8ITpjXTk0MS1YWpf6fXdc" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-130",
"url": "/v2/users/uaa-id-130",
"created_at": "2015-08-06T00:36:38Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "3cf766cc-e64c-40c1-940f-7db1217bbf58",
"default_space_url": "/v2/spaces/3cf766cc-e64c-40c1-940f-7db1217bbf58",
"spaces_url": "/v2/users/uaa-id-130/spaces",
"organizations_url": "/v2/users/uaa-id-130/organizations",
"managed_organizations_url": "/v2/users/uaa-id-130/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-130/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-130/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-130/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-130/audited_spaces"
}
}
Headers