Associate Manager with the Organization by Username
PUT v2/organizations/:guid/managers
Request
Route
PUT v2/organizations/b9a2415f-3c1f-4b23-81b4-dab320787de9/managers
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Organization
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
username
|
The user's name
|
|
|
|
{
"username": "user@example.com"
}
Headers
cURL
curl "https://api.[your-domain.com]v2/organizations/b9a2415f-3c1f-4b23-81b4-dab320787de9/managers" -d '{
"username": "user@example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyIiwiZW1haWwiOiJlbWFpbC0zOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYzNjE4NzA1fQ.E9nDsydDe_W3LbyA5XbCUTja8x5Hm3DiNCScpFAClvI" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "b9a2415f-3c1f-4b23-81b4-dab320787de9",
"url": "/v2/organizations/b9a2415f-3c1f-4b23-81b4-dab320787de9",
"created_at": "2016-05-12T00:45:05Z",
"updated_at": null
},
"entity": {
"name": "name-62",
"billing_enabled": false,
"quota_definition_guid": "b0e8dde0-8bb4-4fe0-adf6-49b4a0219fb1",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/b0e8dde0-8bb4-4fe0-adf6-49b4a0219fb1",
"spaces_url": "/v2/organizations/b9a2415f-3c1f-4b23-81b4-dab320787de9/spaces",
"domains_url": "/v2/organizations/b9a2415f-3c1f-4b23-81b4-dab320787de9/domains",
"private_domains_url": "/v2/organizations/b9a2415f-3c1f-4b23-81b4-dab320787de9/private_domains",
"users_url": "/v2/organizations/b9a2415f-3c1f-4b23-81b4-dab320787de9/users",
"managers_url": "/v2/organizations/b9a2415f-3c1f-4b23-81b4-dab320787de9/managers",
"billing_managers_url": "/v2/organizations/b9a2415f-3c1f-4b23-81b4-dab320787de9/billing_managers",
"auditors_url": "/v2/organizations/b9a2415f-3c1f-4b23-81b4-dab320787de9/auditors",
"app_events_url": "/v2/organizations/b9a2415f-3c1f-4b23-81b4-dab320787de9/app_events",
"space_quota_definitions_url": "/v2/organizations/b9a2415f-3c1f-4b23-81b4-dab320787de9/space_quota_definitions"
}
}
Headers