Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization

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

Request

Route

PUT /v2/organizations/22d3d489-036f-4852-8f8f-41a1b6e22716/managers/uaa-id-152

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/22d3d489-036f-4852-8f8f-41a1b6e22716/managers/uaa-id-152" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1MyIsImVtYWlsIjoiZW1haWwtMTA4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NjV9.hWQV1SBSJCVAe6l1CvDQdTuFNVgKw7_Rjhif2GYR11E" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "22d3d489-036f-4852-8f8f-41a1b6e22716",
    "url": "/v2/organizations/22d3d489-036f-4852-8f8f-41a1b6e22716",
    "created_at": "2015-03-03T00:51:05Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1100",
    "billing_enabled": false,
    "quota_definition_guid": "5bd4baf1-d1bb-4a89-8a2f-0141fb9dd755",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/5bd4baf1-d1bb-4a89-8a2f-0141fb9dd755",
    "spaces_url": "/v2/organizations/22d3d489-036f-4852-8f8f-41a1b6e22716/spaces",
    "domains_url": "/v2/organizations/22d3d489-036f-4852-8f8f-41a1b6e22716/domains",
    "private_domains_url": "/v2/organizations/22d3d489-036f-4852-8f8f-41a1b6e22716/private_domains",
    "users_url": "/v2/organizations/22d3d489-036f-4852-8f8f-41a1b6e22716/users",
    "managers_url": "/v2/organizations/22d3d489-036f-4852-8f8f-41a1b6e22716/managers",
    "billing_managers_url": "/v2/organizations/22d3d489-036f-4852-8f8f-41a1b6e22716/billing_managers",
    "auditors_url": "/v2/organizations/22d3d489-036f-4852-8f8f-41a1b6e22716/auditors",
    "app_events_url": "/v2/organizations/22d3d489-036f-4852-8f8f-41a1b6e22716/app_events",
    "space_quota_definitions_url": "/v2/organizations/22d3d489-036f-4852-8f8f-41a1b6e22716/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8aa58e27-c7d9-48ca-9982-6ebbc47e8518
Content-Length: 1300
X-Content-Type-Options: nosniff