Associate Organization with the User
PUT /v2/users/:guid/organizations/:organization_guid
Request
Route
PUT /v2/users/uaa-id-138/organizations/151f92be-9399-414e-9a1e-c3e92f92a017
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-138/organizations/151f92be-9399-414e-9a1e-c3e92f92a017" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzOSIsImVtYWlsIjoiZW1haWwtMTE5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyMzF9.W0RKzoxZ6blFsLVqkmIngJ-6Dusx5z11nUL6uH8EYnk" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-138",
"url": "/v2/users/uaa-id-138",
"created_at": "2016-02-19T02:03:51Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "f77241d7-2236-4ebb-955d-fcbae75f12c0",
"default_space_url": "/v2/spaces/f77241d7-2236-4ebb-955d-fcbae75f12c0",
"spaces_url": "/v2/users/uaa-id-138/spaces",
"organizations_url": "/v2/users/uaa-id-138/organizations",
"managed_organizations_url": "/v2/users/uaa-id-138/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-138/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-138/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-138/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-138/audited_spaces"
}
}
Headers