Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization

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

Request

Route

PUT /v2/organizations/13b9e0fb-0ae7-4af0-bd07-7739d05caad3/managers/uaa-id-208

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/13b9e0fb-0ae7-4af0-bd07-7739d05caad3/managers/uaa-id-208" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwOSIsImVtYWlsIjoiZW1haWwtMTcxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MTZ9.Kr9uJ5FaqjG2lg3D9Wbp2uYb2JrnsRfbQPZgt4D9PxY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "13b9e0fb-0ae7-4af0-bd07-7739d05caad3",
    "url": "/v2/organizations/13b9e0fb-0ae7-4af0-bd07-7739d05caad3",
    "created_at": "2015-05-15T16:53:36Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-843",
    "billing_enabled": false,
    "quota_definition_guid": "deab75fd-5a6e-46d0-89da-349d57ed9e09",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/deab75fd-5a6e-46d0-89da-349d57ed9e09",
    "spaces_url": "/v2/organizations/13b9e0fb-0ae7-4af0-bd07-7739d05caad3/spaces",
    "domains_url": "/v2/organizations/13b9e0fb-0ae7-4af0-bd07-7739d05caad3/domains",
    "private_domains_url": "/v2/organizations/13b9e0fb-0ae7-4af0-bd07-7739d05caad3/private_domains",
    "users_url": "/v2/organizations/13b9e0fb-0ae7-4af0-bd07-7739d05caad3/users",
    "managers_url": "/v2/organizations/13b9e0fb-0ae7-4af0-bd07-7739d05caad3/managers",
    "billing_managers_url": "/v2/organizations/13b9e0fb-0ae7-4af0-bd07-7739d05caad3/billing_managers",
    "auditors_url": "/v2/organizations/13b9e0fb-0ae7-4af0-bd07-7739d05caad3/auditors",
    "app_events_url": "/v2/organizations/13b9e0fb-0ae7-4af0-bd07-7739d05caad3/app_events",
    "space_quota_definitions_url": "/v2/organizations/13b9e0fb-0ae7-4af0-bd07-7739d05caad3/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 00b7933c-9540-46c4-b0a6-f3c5f5f5f5ee
Content-Length: 1299
X-Content-Type-Options: nosniff