Associate Organization with the User
PUT /v2/users/:guid/organizations/:organization_guid
Request
Route
PUT /v2/users/uaa-id-193/organizations/28e56258-f54f-450a-9eb6-31225ca2707c
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the User
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/users/uaa-id-193/organizations/28e56258-f54f-450a-9eb6-31225ca2707c" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NCIsImVtYWlsIjoiZW1haWwtMTI1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MDV9.RDBy7sukWGw1syEMnB0Q5e4t-2Uv8Shj7DfjUYt0RI4" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "uaa-id-193",
"url": "/v2/users/uaa-id-193",
"created_at": "2015-04-07T19:11:45Z",
"updated_at": null
},
"entity": {
"admin": false,
"active": false,
"default_space_guid": "63f99b83-87e0-4e56-ab1a-b2b1e2f8ca63",
"default_space_url": "/v2/spaces/63f99b83-87e0-4e56-ab1a-b2b1e2f8ca63",
"spaces_url": "/v2/users/uaa-id-193/spaces",
"organizations_url": "/v2/users/uaa-id-193/organizations",
"managed_organizations_url": "/v2/users/uaa-id-193/managed_organizations",
"billing_managed_organizations_url": "/v2/users/uaa-id-193/billing_managed_organizations",
"audited_organizations_url": "/v2/users/uaa-id-193/audited_organizations",
"managed_spaces_url": "/v2/users/uaa-id-193/managed_spaces",
"audited_spaces_url": "/v2/users/uaa-id-193/audited_spaces"
}
}
Headers