Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization

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

Request

Route

PUT /v2/organizations/99a8ec56-f027-4464-a202-158e02c79658/managers/uaa-id-107

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/99a8ec56-f027-4464-a202-158e02c79658/managers/uaa-id-107" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwOCIsImVtYWlsIjoiZW1haWwtODNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzOTQyNjE5N30.JSo9euaKqpdx8hPFmI_VhksgJgex2g8SEa8twWXvjkA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "99a8ec56-f027-4464-a202-158e02c79658",
    "url": "/v2/organizations/99a8ec56-f027-4464-a202-158e02c79658",
    "created_at": "2015-08-06T00:36:37Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-400",
    "billing_enabled": false,
    "quota_definition_guid": "e8d432e6-1242-472c-aa4d-dbe708b0c5e5",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/e8d432e6-1242-472c-aa4d-dbe708b0c5e5",
    "spaces_url": "/v2/organizations/99a8ec56-f027-4464-a202-158e02c79658/spaces",
    "domains_url": "/v2/organizations/99a8ec56-f027-4464-a202-158e02c79658/domains",
    "private_domains_url": "/v2/organizations/99a8ec56-f027-4464-a202-158e02c79658/private_domains",
    "users_url": "/v2/organizations/99a8ec56-f027-4464-a202-158e02c79658/users",
    "managers_url": "/v2/organizations/99a8ec56-f027-4464-a202-158e02c79658/managers",
    "billing_managers_url": "/v2/organizations/99a8ec56-f027-4464-a202-158e02c79658/billing_managers",
    "auditors_url": "/v2/organizations/99a8ec56-f027-4464-a202-158e02c79658/auditors",
    "app_events_url": "/v2/organizations/99a8ec56-f027-4464-a202-158e02c79658/app_events",
    "space_quota_definitions_url": "/v2/organizations/99a8ec56-f027-4464-a202-158e02c79658/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f935b797-72bf-4537-a041-0afa21328f38
Content-Length: 1299
X-Content-Type-Options: nosniff