Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization

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

Request

Route

PUT /v2/organizations/1ba7561a-23b3-44ca-9e71-7d5c26b9e2d4/managers/uaa-id-347

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.eyJ1c2VyX2lkIjoidWFhLWlkLTM0OCIsImVtYWlsIjoiZW1haWwtMjM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDF9.q6ClxwFYZToqi7lht4xpYeAm-pu1ntZqxSnFQ-3Av6Y
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/1ba7561a-23b3-44ca-9e71-7d5c26b9e2d4/managers/uaa-id-347" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0OCIsImVtYWlsIjoiZW1haWwtMjM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDF9.q6ClxwFYZToqi7lht4xpYeAm-pu1ntZqxSnFQ-3Av6Y" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "1ba7561a-23b3-44ca-9e71-7d5c26b9e2d4",
    "url": "/v2/organizations/1ba7561a-23b3-44ca-9e71-7d5c26b9e2d4",
    "created_at": "2015-10-07T00:35:41Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2148",
    "billing_enabled": false,
    "quota_definition_guid": "8a594cc7-7c01-43ab-94fc-767463619cbc",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/8a594cc7-7c01-43ab-94fc-767463619cbc",
    "spaces_url": "/v2/organizations/1ba7561a-23b3-44ca-9e71-7d5c26b9e2d4/spaces",
    "domains_url": "/v2/organizations/1ba7561a-23b3-44ca-9e71-7d5c26b9e2d4/domains",
    "private_domains_url": "/v2/organizations/1ba7561a-23b3-44ca-9e71-7d5c26b9e2d4/private_domains",
    "users_url": "/v2/organizations/1ba7561a-23b3-44ca-9e71-7d5c26b9e2d4/users",
    "managers_url": "/v2/organizations/1ba7561a-23b3-44ca-9e71-7d5c26b9e2d4/managers",
    "billing_managers_url": "/v2/organizations/1ba7561a-23b3-44ca-9e71-7d5c26b9e2d4/billing_managers",
    "auditors_url": "/v2/organizations/1ba7561a-23b3-44ca-9e71-7d5c26b9e2d4/auditors",
    "app_events_url": "/v2/organizations/1ba7561a-23b3-44ca-9e71-7d5c26b9e2d4/app_events",
    "space_quota_definitions_url": "/v2/organizations/1ba7561a-23b3-44ca-9e71-7d5c26b9e2d4/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 896067e3-809b-4aa1-96c2-7a65d1cfbadd
Content-Length: 1300
X-Content-Type-Options: nosniff