Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization

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

Request

Route

PUT /v2/organizations/f29afd9b-7b66-4524-b5d4-f7a86f56ff14/managers/uaa-id-48

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/f29afd9b-7b66-4524-b5d4-f7a86f56ff14/managers/uaa-id-48" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ5IiwiZW1haWwiOiJlbWFpbC00MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3NDgwODQyfQ.zIZRBQjg_4uRcYGZGAWUtLDz6vkto-S_zrlnvWETLmc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "f29afd9b-7b66-4524-b5d4-f7a86f56ff14",
    "url": "/v2/organizations/f29afd9b-7b66-4524-b5d4-f7a86f56ff14",
    "created_at": "2015-03-20T18:27:22Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-161",
    "billing_enabled": false,
    "quota_definition_guid": "6d96de1a-aeda-4538-a65d-91ebc514aa12",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/6d96de1a-aeda-4538-a65d-91ebc514aa12",
    "spaces_url": "/v2/organizations/f29afd9b-7b66-4524-b5d4-f7a86f56ff14/spaces",
    "domains_url": "/v2/organizations/f29afd9b-7b66-4524-b5d4-f7a86f56ff14/domains",
    "private_domains_url": "/v2/organizations/f29afd9b-7b66-4524-b5d4-f7a86f56ff14/private_domains",
    "users_url": "/v2/organizations/f29afd9b-7b66-4524-b5d4-f7a86f56ff14/users",
    "managers_url": "/v2/organizations/f29afd9b-7b66-4524-b5d4-f7a86f56ff14/managers",
    "billing_managers_url": "/v2/organizations/f29afd9b-7b66-4524-b5d4-f7a86f56ff14/billing_managers",
    "auditors_url": "/v2/organizations/f29afd9b-7b66-4524-b5d4-f7a86f56ff14/auditors",
    "app_events_url": "/v2/organizations/f29afd9b-7b66-4524-b5d4-f7a86f56ff14/app_events",
    "space_quota_definitions_url": "/v2/organizations/f29afd9b-7b66-4524-b5d4-f7a86f56ff14/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6caeec57-da74-42c8-abb8-69fb6176c07b
Content-Length: 1299
X-Content-Type-Options: nosniff