Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization

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

Request

Route

PUT /v2/organizations/59c79530-b8b7-49af-a135-05df50110e3c/managers/uaa-id-218

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/59c79530-b8b7-49af-a135-05df50110e3c/managers/uaa-id-218" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxOSIsImVtYWlsIjoiZW1haWwtMTQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODd9.kDwHYIrvIyqENKEy-bmI4CnK4e7EJ0UJWUgPj7yj6aU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "59c79530-b8b7-49af-a135-05df50110e3c",
    "url": "/v2/organizations/59c79530-b8b7-49af-a135-05df50110e3c",
    "created_at": "2015-12-22T18:28:07Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-728",
    "billing_enabled": false,
    "quota_definition_guid": "32d6f968-df11-43aa-b487-d38c5941058f",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/32d6f968-df11-43aa-b487-d38c5941058f",
    "spaces_url": "/v2/organizations/59c79530-b8b7-49af-a135-05df50110e3c/spaces",
    "domains_url": "/v2/organizations/59c79530-b8b7-49af-a135-05df50110e3c/domains",
    "private_domains_url": "/v2/organizations/59c79530-b8b7-49af-a135-05df50110e3c/private_domains",
    "users_url": "/v2/organizations/59c79530-b8b7-49af-a135-05df50110e3c/users",
    "managers_url": "/v2/organizations/59c79530-b8b7-49af-a135-05df50110e3c/managers",
    "billing_managers_url": "/v2/organizations/59c79530-b8b7-49af-a135-05df50110e3c/billing_managers",
    "auditors_url": "/v2/organizations/59c79530-b8b7-49af-a135-05df50110e3c/auditors",
    "app_events_url": "/v2/organizations/59c79530-b8b7-49af-a135-05df50110e3c/app_events",
    "space_quota_definitions_url": "/v2/organizations/59c79530-b8b7-49af-a135-05df50110e3c/space_quota_definitions"
  }
}

Headers

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