Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization

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

Request

Route

PUT /v2/organizations/83fbd824-6e03-4593-b84c-564d566a6728/managers/uaa-id-50

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.eyJ1c2VyX2lkIjoidWFhLWlkLTUxIiwiZW1haWwiOiJlbWFpbC0yOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxOTU4MzkxfQ.alktCYE4dQOdfeanX2Gh-VVnMV5OY_52pJoZxf1L2xw
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/83fbd824-6e03-4593-b84c-564d566a6728/managers/uaa-id-50" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUxIiwiZW1haWwiOiJlbWFpbC0yOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxOTU4MzkxfQ.alktCYE4dQOdfeanX2Gh-VVnMV5OY_52pJoZxf1L2xw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "83fbd824-6e03-4593-b84c-564d566a6728",
    "url": "/v2/organizations/83fbd824-6e03-4593-b84c-564d566a6728",
    "created_at": "2016-04-22T19:33:11Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-78",
    "billing_enabled": false,
    "quota_definition_guid": "f086b80e-a373-427c-a3d9-4014550099af",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/f086b80e-a373-427c-a3d9-4014550099af",
    "spaces_url": "/v2/organizations/83fbd824-6e03-4593-b84c-564d566a6728/spaces",
    "domains_url": "/v2/organizations/83fbd824-6e03-4593-b84c-564d566a6728/domains",
    "private_domains_url": "/v2/organizations/83fbd824-6e03-4593-b84c-564d566a6728/private_domains",
    "users_url": "/v2/organizations/83fbd824-6e03-4593-b84c-564d566a6728/users",
    "managers_url": "/v2/organizations/83fbd824-6e03-4593-b84c-564d566a6728/managers",
    "billing_managers_url": "/v2/organizations/83fbd824-6e03-4593-b84c-564d566a6728/billing_managers",
    "auditors_url": "/v2/organizations/83fbd824-6e03-4593-b84c-564d566a6728/auditors",
    "app_events_url": "/v2/organizations/83fbd824-6e03-4593-b84c-564d566a6728/app_events",
    "space_quota_definitions_url": "/v2/organizations/83fbd824-6e03-4593-b84c-564d566a6728/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7ff09147-a305-4f94-936b-2bbe38b8da11
Content-Length: 1298
X-Content-Type-Options: nosniff