Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization

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

Request

Route

PUT /v2/organizations/f7a4140c-17f7-48b3-b996-e648ec613d09/managers/uaa-id-106

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/f7a4140c-17f7-48b3-b996-e648ec613d09/managers/uaa-id-106" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwNyIsImVtYWlsIjoiZW1haWwtNjdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODg1NTY2N30.DQ2UbhtFUV00FRnhndUV3-1SH8nTbe3e38RQYjhUd2Y" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "f7a4140c-17f7-48b3-b996-e648ec613d09",
    "url": "/v2/organizations/f7a4140c-17f7-48b3-b996-e648ec613d09",
    "created_at": "2016-03-17T21:41:07Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-340",
    "billing_enabled": false,
    "quota_definition_guid": "10489f06-2a34-4874-b13d-fc6e6ccb42da",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/10489f06-2a34-4874-b13d-fc6e6ccb42da",
    "spaces_url": "/v2/organizations/f7a4140c-17f7-48b3-b996-e648ec613d09/spaces",
    "domains_url": "/v2/organizations/f7a4140c-17f7-48b3-b996-e648ec613d09/domains",
    "private_domains_url": "/v2/organizations/f7a4140c-17f7-48b3-b996-e648ec613d09/private_domains",
    "users_url": "/v2/organizations/f7a4140c-17f7-48b3-b996-e648ec613d09/users",
    "managers_url": "/v2/organizations/f7a4140c-17f7-48b3-b996-e648ec613d09/managers",
    "billing_managers_url": "/v2/organizations/f7a4140c-17f7-48b3-b996-e648ec613d09/billing_managers",
    "auditors_url": "/v2/organizations/f7a4140c-17f7-48b3-b996-e648ec613d09/auditors",
    "app_events_url": "/v2/organizations/f7a4140c-17f7-48b3-b996-e648ec613d09/app_events",
    "space_quota_definitions_url": "/v2/organizations/f7a4140c-17f7-48b3-b996-e648ec613d09/space_quota_definitions"
  }
}

Headers

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