Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization

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

Request

Route

PUT /v2/organizations/4964cd75-e41f-45bb-a182-4601ad56f87e/managers/uaa-id-112

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExMyIsImVtYWlsIjoiZW1haWwtODNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyOTAzODcwMn0.H6fS2_yHIkbr_kHRH1__NAiTh32vlU2c6lGcWNS0bhY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/4964cd75-e41f-45bb-a182-4601ad56f87e/managers/uaa-id-112" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExMyIsImVtYWlsIjoiZW1haWwtODNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyOTAzODcwMn0.H6fS2_yHIkbr_kHRH1__NAiTh32vlU2c6lGcWNS0bhY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "4964cd75-e41f-45bb-a182-4601ad56f87e",
    "url": "/v2/organizations/4964cd75-e41f-45bb-a182-4601ad56f87e",
    "created_at": "2015-04-07T19:11:41Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-301",
    "billing_enabled": false,
    "quota_definition_guid": "e2b69875-0adb-443b-a103-99336404196a",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/e2b69875-0adb-443b-a103-99336404196a",
    "spaces_url": "/v2/organizations/4964cd75-e41f-45bb-a182-4601ad56f87e/spaces",
    "domains_url": "/v2/organizations/4964cd75-e41f-45bb-a182-4601ad56f87e/domains",
    "private_domains_url": "/v2/organizations/4964cd75-e41f-45bb-a182-4601ad56f87e/private_domains",
    "users_url": "/v2/organizations/4964cd75-e41f-45bb-a182-4601ad56f87e/users",
    "managers_url": "/v2/organizations/4964cd75-e41f-45bb-a182-4601ad56f87e/managers",
    "billing_managers_url": "/v2/organizations/4964cd75-e41f-45bb-a182-4601ad56f87e/billing_managers",
    "auditors_url": "/v2/organizations/4964cd75-e41f-45bb-a182-4601ad56f87e/auditors",
    "app_events_url": "/v2/organizations/4964cd75-e41f-45bb-a182-4601ad56f87e/app_events",
    "space_quota_definitions_url": "/v2/organizations/4964cd75-e41f-45bb-a182-4601ad56f87e/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: da1a64ee-1ab8-4429-b0e4-ed55e40da30e
Content-Length: 1299
X-Content-Type-Options: nosniff