Associate Manager with the Organization
PUT /v2/organizations/:guid/managers/:manager_guid
Request
Route
PUT /v2/organizations/384891a7-08bb-4c08-ae50-e7937bb63039/managers/uaa-id-102
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Organization
|
|
|
manager_guid
|
The guid of the user to associate as a manager
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/organizations/384891a7-08bb-4c08-ae50-e7937bb63039/managers/uaa-id-102" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMyIsImVtYWlsIjoiZW1haWwtNTRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MTY2MjU5N30.UOewLa5u0z1EZwFHwJTZoJLB6Smft0Irh395VgRISe8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "384891a7-08bb-4c08-ae50-e7937bb63039",
"url": "/v2/organizations/384891a7-08bb-4c08-ae50-e7937bb63039",
"created_at": "2015-08-31T21:49:57Z",
"updated_at": null
},
"entity": {
"name": "name-308",
"billing_enabled": false,
"quota_definition_guid": "0f9e262e-5789-49fa-8956-e791d80c0ac4",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/0f9e262e-5789-49fa-8956-e791d80c0ac4",
"spaces_url": "/v2/organizations/384891a7-08bb-4c08-ae50-e7937bb63039/spaces",
"domains_url": "/v2/organizations/384891a7-08bb-4c08-ae50-e7937bb63039/domains",
"private_domains_url": "/v2/organizations/384891a7-08bb-4c08-ae50-e7937bb63039/private_domains",
"users_url": "/v2/organizations/384891a7-08bb-4c08-ae50-e7937bb63039/users",
"managers_url": "/v2/organizations/384891a7-08bb-4c08-ae50-e7937bb63039/managers",
"billing_managers_url": "/v2/organizations/384891a7-08bb-4c08-ae50-e7937bb63039/billing_managers",
"auditors_url": "/v2/organizations/384891a7-08bb-4c08-ae50-e7937bb63039/auditors",
"app_events_url": "/v2/organizations/384891a7-08bb-4c08-ae50-e7937bb63039/app_events",
"space_quota_definitions_url": "/v2/organizations/384891a7-08bb-4c08-ae50-e7937bb63039/space_quota_definitions"
}
}
Headers