Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization

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

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MyIsImVtYWlsIjoiZW1haWwtMjc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NTR9.9rCUv7YAXEWXCdAzpQNXNqphm592VSz5Z5Kc2aF-oUY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/organizations/bf71826d-c148-4b3f-b87d-ffb27e9bf37a/managers/uaa-id-372

cURL

curl "https://api.[your-domain.com]/v2/organizations/bf71826d-c148-4b3f-b87d-ffb27e9bf37a/managers/uaa-id-372" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MyIsImVtYWlsIjoiZW1haWwtMjc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NTR9.9rCUv7YAXEWXCdAzpQNXNqphm592VSz5Z5Kc2aF-oUY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5ef7a0d3-70d3-43f1-8b42-6ac4d99f0bdb
Content-Length: 1305
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "bf71826d-c148-4b3f-b87d-ffb27e9bf37a",
    "url": "/v2/organizations/bf71826d-c148-4b3f-b87d-ffb27e9bf37a",
    "created_at": "2015-01-20T01:52:34+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-1972",
    "billing_enabled": false,
    "quota_definition_guid": "244a6705-92f2-4237-bad8-1bab89ead934",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/244a6705-92f2-4237-bad8-1bab89ead934",
    "spaces_url": "/v2/organizations/bf71826d-c148-4b3f-b87d-ffb27e9bf37a/spaces",
    "domains_url": "/v2/organizations/bf71826d-c148-4b3f-b87d-ffb27e9bf37a/domains",
    "private_domains_url": "/v2/organizations/bf71826d-c148-4b3f-b87d-ffb27e9bf37a/private_domains",
    "users_url": "/v2/organizations/bf71826d-c148-4b3f-b87d-ffb27e9bf37a/users",
    "managers_url": "/v2/organizations/bf71826d-c148-4b3f-b87d-ffb27e9bf37a/managers",
    "billing_managers_url": "/v2/organizations/bf71826d-c148-4b3f-b87d-ffb27e9bf37a/billing_managers",
    "auditors_url": "/v2/organizations/bf71826d-c148-4b3f-b87d-ffb27e9bf37a/auditors",
    "app_events_url": "/v2/organizations/bf71826d-c148-4b3f-b87d-ffb27e9bf37a/app_events",
    "space_quota_definitions_url": "/v2/organizations/bf71826d-c148-4b3f-b87d-ffb27e9bf37a/space_quota_definitions"
  }
}