Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization

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

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxIiwiZW1haWwiOiJlbWFpbC0yNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0NDcxNjg2fQ.0OPCLzhCjzygjPmjzGlTDDefdo_QncWBWTHlMR0MKRU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/organizations/6d3df267-b174-48ce-878a-250ee0c3f16f/managers/uaa-id-40

cURL

curl "https://api.[your-domain.com]/v2/organizations/6d3df267-b174-48ce-878a-250ee0c3f16f/managers/uaa-id-40" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxIiwiZW1haWwiOiJlbWFpbC0yNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0NDcxNjg2fQ.0OPCLzhCjzygjPmjzGlTDDefdo_QncWBWTHlMR0MKRU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: de489e5d-5031-419c-b172-d1bd5fd6ddad
Content-Length: 1298
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "6d3df267-b174-48ce-878a-250ee0c3f16f",
    "url": "/v2/organizations/6d3df267-b174-48ce-878a-250ee0c3f16f",
    "created_at": "2015-02-13T22:34:46Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-66",
    "billing_enabled": false,
    "quota_definition_guid": "fbedf904-fc80-4615-855b-82dba37d5fbf",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/fbedf904-fc80-4615-855b-82dba37d5fbf",
    "spaces_url": "/v2/organizations/6d3df267-b174-48ce-878a-250ee0c3f16f/spaces",
    "domains_url": "/v2/organizations/6d3df267-b174-48ce-878a-250ee0c3f16f/domains",
    "private_domains_url": "/v2/organizations/6d3df267-b174-48ce-878a-250ee0c3f16f/private_domains",
    "users_url": "/v2/organizations/6d3df267-b174-48ce-878a-250ee0c3f16f/users",
    "managers_url": "/v2/organizations/6d3df267-b174-48ce-878a-250ee0c3f16f/managers",
    "billing_managers_url": "/v2/organizations/6d3df267-b174-48ce-878a-250ee0c3f16f/billing_managers",
    "auditors_url": "/v2/organizations/6d3df267-b174-48ce-878a-250ee0c3f16f/auditors",
    "app_events_url": "/v2/organizations/6d3df267-b174-48ce-878a-250ee0c3f16f/app_events",
    "space_quota_definitions_url": "/v2/organizations/6d3df267-b174-48ce-878a-250ee0c3f16f/space_quota_definitions"
  }
}