Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization

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

Request

Route

PUT /v2/organizations/35690e96-6ca9-481c-92c2-07b3ff32348f/managers/uaa-id-113

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/35690e96-6ca9-481c-92c2-07b3ff32348f/managers/uaa-id-113" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNCIsImVtYWlsIjoiZW1haWwtMTA2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTF9.65SH5XxfLJIQxLqlHCJl_Uc4kRWLNrnZ9XObw6Ryd5Q" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "35690e96-6ca9-481c-92c2-07b3ff32348f",
    "url": "/v2/organizations/35690e96-6ca9-481c-92c2-07b3ff32348f",
    "created_at": "2015-06-16T23:40:51Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-534",
    "billing_enabled": false,
    "quota_definition_guid": "2a84249f-80a5-48d7-b970-c74235579537",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/2a84249f-80a5-48d7-b970-c74235579537",
    "spaces_url": "/v2/organizations/35690e96-6ca9-481c-92c2-07b3ff32348f/spaces",
    "domains_url": "/v2/organizations/35690e96-6ca9-481c-92c2-07b3ff32348f/domains",
    "private_domains_url": "/v2/organizations/35690e96-6ca9-481c-92c2-07b3ff32348f/private_domains",
    "users_url": "/v2/organizations/35690e96-6ca9-481c-92c2-07b3ff32348f/users",
    "managers_url": "/v2/organizations/35690e96-6ca9-481c-92c2-07b3ff32348f/managers",
    "billing_managers_url": "/v2/organizations/35690e96-6ca9-481c-92c2-07b3ff32348f/billing_managers",
    "auditors_url": "/v2/organizations/35690e96-6ca9-481c-92c2-07b3ff32348f/auditors",
    "app_events_url": "/v2/organizations/35690e96-6ca9-481c-92c2-07b3ff32348f/app_events",
    "space_quota_definitions_url": "/v2/organizations/35690e96-6ca9-481c-92c2-07b3ff32348f/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 4a0a6ed8-81c5-45b1-aa59-578fe023a080
Content-Length: 1299
X-Content-Type-Options: nosniff