Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization

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

Request

Route

PUT /v2/organizations/bf4a1ab7-9f12-474c-979c-a3bf2afb4391/managers/uaa-id-96

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.eyJ1c2VyX2lkIjoidWFhLWlkLTk3IiwiZW1haWwiOiJlbWFpbC01NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk5fQ.BtbWrRb-O8rdUesHsqcBGMQXvpRbbk2CF4TYZjIBVto
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/bf4a1ab7-9f12-474c-979c-a3bf2afb4391/managers/uaa-id-96" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk3IiwiZW1haWwiOiJlbWFpbC01NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk5fQ.BtbWrRb-O8rdUesHsqcBGMQXvpRbbk2CF4TYZjIBVto" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "bf4a1ab7-9f12-474c-979c-a3bf2afb4391",
    "url": "/v2/organizations/bf4a1ab7-9f12-474c-979c-a3bf2afb4391",
    "created_at": "2015-10-13T17:31:39Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-221",
    "billing_enabled": false,
    "quota_definition_guid": "a0847fa0-422d-4260-a5d2-916fcbfdb63d",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/a0847fa0-422d-4260-a5d2-916fcbfdb63d",
    "spaces_url": "/v2/organizations/bf4a1ab7-9f12-474c-979c-a3bf2afb4391/spaces",
    "domains_url": "/v2/organizations/bf4a1ab7-9f12-474c-979c-a3bf2afb4391/domains",
    "private_domains_url": "/v2/organizations/bf4a1ab7-9f12-474c-979c-a3bf2afb4391/private_domains",
    "users_url": "/v2/organizations/bf4a1ab7-9f12-474c-979c-a3bf2afb4391/users",
    "managers_url": "/v2/organizations/bf4a1ab7-9f12-474c-979c-a3bf2afb4391/managers",
    "billing_managers_url": "/v2/organizations/bf4a1ab7-9f12-474c-979c-a3bf2afb4391/billing_managers",
    "auditors_url": "/v2/organizations/bf4a1ab7-9f12-474c-979c-a3bf2afb4391/auditors",
    "app_events_url": "/v2/organizations/bf4a1ab7-9f12-474c-979c-a3bf2afb4391/app_events",
    "space_quota_definitions_url": "/v2/organizations/bf4a1ab7-9f12-474c-979c-a3bf2afb4391/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: bc9fa63e-ae41-4b7c-9270-2a5d46425f63
Content-Length: 1299
X-Content-Type-Options: nosniff