Associate Manager with the Organization
PUT /v2/organizations/:guid/managers/:manager_guid
Request
Route
PUT /v2/organizations/01a66e10-e5f4-4723-92b4-03f28b1855e6/managers/uaa-id-338
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/01a66e10-e5f4-4723-92b4-03f28b1855e6/managers/uaa-id-338" -d '' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzOSIsImVtYWlsIjoiZW1haWwtMjQ4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTh9.oUrjHeyQGxywIPTiWDxbKwNJEcBjbkExRqY3gz8Ti6Y" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "01a66e10-e5f4-4723-92b4-03f28b1855e6",
"url": "/v2/organizations/01a66e10-e5f4-4723-92b4-03f28b1855e6",
"created_at": "2015-07-06T23:23:18Z",
"updated_at": null
},
"entity": {
"name": "name-2149",
"billing_enabled": false,
"quota_definition_guid": "55dff040-113b-4ef0-a8af-3ce4c2e1328c",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/55dff040-113b-4ef0-a8af-3ce4c2e1328c",
"spaces_url": "/v2/organizations/01a66e10-e5f4-4723-92b4-03f28b1855e6/spaces",
"domains_url": "/v2/organizations/01a66e10-e5f4-4723-92b4-03f28b1855e6/domains",
"private_domains_url": "/v2/organizations/01a66e10-e5f4-4723-92b4-03f28b1855e6/private_domains",
"users_url": "/v2/organizations/01a66e10-e5f4-4723-92b4-03f28b1855e6/users",
"managers_url": "/v2/organizations/01a66e10-e5f4-4723-92b4-03f28b1855e6/managers",
"billing_managers_url": "/v2/organizations/01a66e10-e5f4-4723-92b4-03f28b1855e6/billing_managers",
"auditors_url": "/v2/organizations/01a66e10-e5f4-4723-92b4-03f28b1855e6/auditors",
"app_events_url": "/v2/organizations/01a66e10-e5f4-4723-92b4-03f28b1855e6/app_events",
"space_quota_definitions_url": "/v2/organizations/01a66e10-e5f4-4723-92b4-03f28b1855e6/space_quota_definitions"
}
}
Headers