Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization

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

Request

Route

PUT /v2/organizations/b7b955ed-00d0-4c81-b04d-38766d9d95d8/managers/uaa-id-393

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/b7b955ed-00d0-4c81-b04d-38766d9d95d8/managers/uaa-id-393" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NCIsImVtYWlsIjoiZW1haWwtMjcyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MzJ9.I2zcUfZjZHjjSZhFqw6F1LL5BMIecLcF2g4f5NCclyo" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "b7b955ed-00d0-4c81-b04d-38766d9d95d8",
    "url": "/v2/organizations/b7b955ed-00d0-4c81-b04d-38766d9d95d8",
    "created_at": "2016-01-26T22:20:32Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2270",
    "billing_enabled": false,
    "quota_definition_guid": "893b22ba-9468-4944-8ce9-14275474c50f",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/893b22ba-9468-4944-8ce9-14275474c50f",
    "spaces_url": "/v2/organizations/b7b955ed-00d0-4c81-b04d-38766d9d95d8/spaces",
    "domains_url": "/v2/organizations/b7b955ed-00d0-4c81-b04d-38766d9d95d8/domains",
    "private_domains_url": "/v2/organizations/b7b955ed-00d0-4c81-b04d-38766d9d95d8/private_domains",
    "users_url": "/v2/organizations/b7b955ed-00d0-4c81-b04d-38766d9d95d8/users",
    "managers_url": "/v2/organizations/b7b955ed-00d0-4c81-b04d-38766d9d95d8/managers",
    "billing_managers_url": "/v2/organizations/b7b955ed-00d0-4c81-b04d-38766d9d95d8/billing_managers",
    "auditors_url": "/v2/organizations/b7b955ed-00d0-4c81-b04d-38766d9d95d8/auditors",
    "app_events_url": "/v2/organizations/b7b955ed-00d0-4c81-b04d-38766d9d95d8/app_events",
    "space_quota_definitions_url": "/v2/organizations/b7b955ed-00d0-4c81-b04d-38766d9d95d8/space_quota_definitions"
  }
}

Headers

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