Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization

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

Request

Route

PUT /v2/organizations/cc7c5224-f973-4358-a95a-dd72decbb20f/managers/uaa-id-97

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.eyJ1c2VyX2lkIjoidWFhLWlkLTk4IiwiZW1haWwiOiJlbWFpbC02M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM4NjQxNzkwfQ.3OZEYB2ZiEAy8UN6P0V9R-B5ZQune8IWa22len3Y6iE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/cc7c5224-f973-4358-a95a-dd72decbb20f/managers/uaa-id-97" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk4IiwiZW1haWwiOiJlbWFpbC02M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM4NjQxNzkwfQ.3OZEYB2ZiEAy8UN6P0V9R-B5ZQune8IWa22len3Y6iE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "cc7c5224-f973-4358-a95a-dd72decbb20f",
    "url": "/v2/organizations/cc7c5224-f973-4358-a95a-dd72decbb20f",
    "created_at": "2015-07-27T22:43:10Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-218",
    "billing_enabled": false,
    "quota_definition_guid": "57f59bb7-7581-4257-9502-cbd60bb92d99",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/57f59bb7-7581-4257-9502-cbd60bb92d99",
    "spaces_url": "/v2/organizations/cc7c5224-f973-4358-a95a-dd72decbb20f/spaces",
    "domains_url": "/v2/organizations/cc7c5224-f973-4358-a95a-dd72decbb20f/domains",
    "private_domains_url": "/v2/organizations/cc7c5224-f973-4358-a95a-dd72decbb20f/private_domains",
    "users_url": "/v2/organizations/cc7c5224-f973-4358-a95a-dd72decbb20f/users",
    "managers_url": "/v2/organizations/cc7c5224-f973-4358-a95a-dd72decbb20f/managers",
    "billing_managers_url": "/v2/organizations/cc7c5224-f973-4358-a95a-dd72decbb20f/billing_managers",
    "auditors_url": "/v2/organizations/cc7c5224-f973-4358-a95a-dd72decbb20f/auditors",
    "app_events_url": "/v2/organizations/cc7c5224-f973-4358-a95a-dd72decbb20f/app_events",
    "space_quota_definitions_url": "/v2/organizations/cc7c5224-f973-4358-a95a-dd72decbb20f/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9ad38b43-d02b-45c6-ab26-e7fb346f09b3
Content-Length: 1299
X-Content-Type-Options: nosniff