Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization

PUT /v2/organizations/:guid/managers/:manager_guid

Request

Route

PUT /v2/organizations/72f3417e-7089-40d2-9024-f1c1abd48e84/managers/uaa-id-65

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

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY2IiwiZW1haWwiOiJlbWFpbC0zOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxMzc0NjI0fQ.XPhpKbEw8bNEIYeGiZNzt4ZjGC0sOHx54XVDaQahDW4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/72f3417e-7089-40d2-9024-f1c1abd48e84/managers/uaa-id-65" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY2IiwiZW1haWwiOiJlbWFpbC0zOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxMzc0NjI0fQ.XPhpKbEw8bNEIYeGiZNzt4ZjGC0sOHx54XVDaQahDW4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "72f3417e-7089-40d2-9024-f1c1abd48e84",
    "url": "/v2/organizations/72f3417e-7089-40d2-9024-f1c1abd48e84",
    "created_at": "2016-04-16T01:23:44Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-79",
    "billing_enabled": false,
    "quota_definition_guid": "fe1f7b05-0c6a-4173-adc9-73c6c40db8c4",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/fe1f7b05-0c6a-4173-adc9-73c6c40db8c4",
    "spaces_url": "/v2/organizations/72f3417e-7089-40d2-9024-f1c1abd48e84/spaces",
    "domains_url": "/v2/organizations/72f3417e-7089-40d2-9024-f1c1abd48e84/domains",
    "private_domains_url": "/v2/organizations/72f3417e-7089-40d2-9024-f1c1abd48e84/private_domains",
    "users_url": "/v2/organizations/72f3417e-7089-40d2-9024-f1c1abd48e84/users",
    "managers_url": "/v2/organizations/72f3417e-7089-40d2-9024-f1c1abd48e84/managers",
    "billing_managers_url": "/v2/organizations/72f3417e-7089-40d2-9024-f1c1abd48e84/billing_managers",
    "auditors_url": "/v2/organizations/72f3417e-7089-40d2-9024-f1c1abd48e84/auditors",
    "app_events_url": "/v2/organizations/72f3417e-7089-40d2-9024-f1c1abd48e84/app_events",
    "space_quota_definitions_url": "/v2/organizations/72f3417e-7089-40d2-9024-f1c1abd48e84/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 72701ab0-4f9a-4bea-a170-f9753a8d0543
Content-Length: 1298
X-Content-Type-Options: nosniff