Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization

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

Request

Route

PUT /v2/organizations/aa89d7c6-3e9e-494c-ab81-339e53c64e98/managers/uaa-id-151

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE1MiIsImVtYWlsIjoiZW1haWwtMTEwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5Nzh9.NLgMxlW1EgD6f6o7Z97NYfUQg6897RwEE7vv-Zi7wJM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/aa89d7c6-3e9e-494c-ab81-339e53c64e98/managers/uaa-id-151" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1MiIsImVtYWlsIjoiZW1haWwtMTEwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5Nzh9.NLgMxlW1EgD6f6o7Z97NYfUQg6897RwEE7vv-Zi7wJM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "aa89d7c6-3e9e-494c-ab81-339e53c64e98",
    "url": "/v2/organizations/aa89d7c6-3e9e-494c-ab81-339e53c64e98",
    "created_at": "2016-01-13T17:29:38Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-506",
    "billing_enabled": false,
    "quota_definition_guid": "9e6ec592-d43b-4bb1-b72b-33f8a60d167b",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/9e6ec592-d43b-4bb1-b72b-33f8a60d167b",
    "spaces_url": "/v2/organizations/aa89d7c6-3e9e-494c-ab81-339e53c64e98/spaces",
    "domains_url": "/v2/organizations/aa89d7c6-3e9e-494c-ab81-339e53c64e98/domains",
    "private_domains_url": "/v2/organizations/aa89d7c6-3e9e-494c-ab81-339e53c64e98/private_domains",
    "users_url": "/v2/organizations/aa89d7c6-3e9e-494c-ab81-339e53c64e98/users",
    "managers_url": "/v2/organizations/aa89d7c6-3e9e-494c-ab81-339e53c64e98/managers",
    "billing_managers_url": "/v2/organizations/aa89d7c6-3e9e-494c-ab81-339e53c64e98/billing_managers",
    "auditors_url": "/v2/organizations/aa89d7c6-3e9e-494c-ab81-339e53c64e98/auditors",
    "app_events_url": "/v2/organizations/aa89d7c6-3e9e-494c-ab81-339e53c64e98/app_events",
    "space_quota_definitions_url": "/v2/organizations/aa89d7c6-3e9e-494c-ab81-339e53c64e98/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1299
X-Content-Type-Options: nosniff