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.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NSIsImVtYWlsIjoiZW1haWwtMTQzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDV9.1nJwVJViBqHr4qgWOVWU6yncx_CqMp96Jgfw9LWxSKg
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/organizations/1a20aacc-86cd-4047-aa3b-9365c319290a/managers/uaa-id-194

cURL

curl "https://api.[your-domain.com]/v2/organizations/1a20aacc-86cd-4047-aa3b-9365c319290a/managers/uaa-id-194" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NSIsImVtYWlsIjoiZW1haWwtMTQzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDV9.1nJwVJViBqHr4qgWOVWU6yncx_CqMp96Jgfw9LWxSKg" \
	-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: cc8f6dd8-4a42-437a-8a18-754a98ba3bbe
Content-Length: 1304
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "1a20aacc-86cd-4047-aa3b-9365c319290a",
    "url": "/v2/organizations/1a20aacc-86cd-4047-aa3b-9365c319290a",
    "created_at": "2014-11-13T23:38:25+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-736",
    "billing_enabled": false,
    "quota_definition_guid": "91dd9884-d960-4d64-bfa1-26635423963a",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/91dd9884-d960-4d64-bfa1-26635423963a",
    "spaces_url": "/v2/organizations/1a20aacc-86cd-4047-aa3b-9365c319290a/spaces",
    "domains_url": "/v2/organizations/1a20aacc-86cd-4047-aa3b-9365c319290a/domains",
    "private_domains_url": "/v2/organizations/1a20aacc-86cd-4047-aa3b-9365c319290a/private_domains",
    "users_url": "/v2/organizations/1a20aacc-86cd-4047-aa3b-9365c319290a/users",
    "managers_url": "/v2/organizations/1a20aacc-86cd-4047-aa3b-9365c319290a/managers",
    "billing_managers_url": "/v2/organizations/1a20aacc-86cd-4047-aa3b-9365c319290a/billing_managers",
    "auditors_url": "/v2/organizations/1a20aacc-86cd-4047-aa3b-9365c319290a/auditors",
    "app_events_url": "/v2/organizations/1a20aacc-86cd-4047-aa3b-9365c319290a/app_events",
    "space_quota_definitions_url": "/v2/organizations/1a20aacc-86cd-4047-aa3b-9365c319290a/space_quota_definitions"
  }
}