Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization

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

Request

Route

PUT /v2/organizations/112aa913-8e7c-48e2-ab91-2d02581c9188/managers/uaa-id-337

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/112aa913-8e7c-48e2-ab91-2d02581c9188/managers/uaa-id-337" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzOCIsImVtYWlsIjoiZW1haWwtMjQyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDF9.Xg7XehJjCt52db4uhl1O9Ijp5PnJhtwBYi48KUlnNxo" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "112aa913-8e7c-48e2-ab91-2d02581c9188",
    "url": "/v2/organizations/112aa913-8e7c-48e2-ab91-2d02581c9188",
    "created_at": "2016-02-19T02:04:01Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2333",
    "billing_enabled": false,
    "quota_definition_guid": "682351f2-9726-4364-8fed-d90a23ab7807",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/682351f2-9726-4364-8fed-d90a23ab7807",
    "spaces_url": "/v2/organizations/112aa913-8e7c-48e2-ab91-2d02581c9188/spaces",
    "domains_url": "/v2/organizations/112aa913-8e7c-48e2-ab91-2d02581c9188/domains",
    "private_domains_url": "/v2/organizations/112aa913-8e7c-48e2-ab91-2d02581c9188/private_domains",
    "users_url": "/v2/organizations/112aa913-8e7c-48e2-ab91-2d02581c9188/users",
    "managers_url": "/v2/organizations/112aa913-8e7c-48e2-ab91-2d02581c9188/managers",
    "billing_managers_url": "/v2/organizations/112aa913-8e7c-48e2-ab91-2d02581c9188/billing_managers",
    "auditors_url": "/v2/organizations/112aa913-8e7c-48e2-ab91-2d02581c9188/auditors",
    "app_events_url": "/v2/organizations/112aa913-8e7c-48e2-ab91-2d02581c9188/app_events",
    "space_quota_definitions_url": "/v2/organizations/112aa913-8e7c-48e2-ab91-2d02581c9188/space_quota_definitions"
  }
}

Headers

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