Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization

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

Request

Route

PUT /v2/organizations/913e3bd3-d24f-4eba-b01c-792aed7e5002/managers/uaa-id-162

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MyIsImVtYWlsIjoiZW1haWwtMTE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDR9.pYXUwPrjbg4-76aEMxIGoo-MElrpkEyjJnYchZBb1cU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/913e3bd3-d24f-4eba-b01c-792aed7e5002/managers/uaa-id-162" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MyIsImVtYWlsIjoiZW1haWwtMTE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDR9.pYXUwPrjbg4-76aEMxIGoo-MElrpkEyjJnYchZBb1cU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "913e3bd3-d24f-4eba-b01c-792aed7e5002",
    "url": "/v2/organizations/913e3bd3-d24f-4eba-b01c-792aed7e5002",
    "created_at": "2015-03-05T19:15:44Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-495",
    "billing_enabled": false,
    "quota_definition_guid": "c0da768d-b18b-4258-8a4b-f8c44b8e2e50",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/c0da768d-b18b-4258-8a4b-f8c44b8e2e50",
    "spaces_url": "/v2/organizations/913e3bd3-d24f-4eba-b01c-792aed7e5002/spaces",
    "domains_url": "/v2/organizations/913e3bd3-d24f-4eba-b01c-792aed7e5002/domains",
    "private_domains_url": "/v2/organizations/913e3bd3-d24f-4eba-b01c-792aed7e5002/private_domains",
    "users_url": "/v2/organizations/913e3bd3-d24f-4eba-b01c-792aed7e5002/users",
    "managers_url": "/v2/organizations/913e3bd3-d24f-4eba-b01c-792aed7e5002/managers",
    "billing_managers_url": "/v2/organizations/913e3bd3-d24f-4eba-b01c-792aed7e5002/billing_managers",
    "auditors_url": "/v2/organizations/913e3bd3-d24f-4eba-b01c-792aed7e5002/auditors",
    "app_events_url": "/v2/organizations/913e3bd3-d24f-4eba-b01c-792aed7e5002/app_events",
    "space_quota_definitions_url": "/v2/organizations/913e3bd3-d24f-4eba-b01c-792aed7e5002/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0d8b5e16-4672-4bd5-a4bc-bd244eb1856c
Content-Length: 1299
X-Content-Type-Options: nosniff