Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization

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

Request

Route

PUT /v2/organizations/9f4da245-231c-483c-bcb6-e68607ba51da/managers/uaa-id-73

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/9f4da245-231c-483c-bcb6-e68607ba51da/managers/uaa-id-73" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc0IiwiZW1haWwiOiJlbWFpbC01OUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyNzc0OTgxfQ.AlzHSgxP6_6pje2sVKoZEzvGIXVY-sW6pMXDOZztJJE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "9f4da245-231c-483c-bcb6-e68607ba51da",
    "url": "/v2/organizations/9f4da245-231c-483c-bcb6-e68607ba51da",
    "created_at": "2015-05-21T01:03:01Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-265",
    "billing_enabled": false,
    "quota_definition_guid": "6a216717-35db-4b5a-a98c-f0bf3b35c8e5",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/6a216717-35db-4b5a-a98c-f0bf3b35c8e5",
    "spaces_url": "/v2/organizations/9f4da245-231c-483c-bcb6-e68607ba51da/spaces",
    "domains_url": "/v2/organizations/9f4da245-231c-483c-bcb6-e68607ba51da/domains",
    "private_domains_url": "/v2/organizations/9f4da245-231c-483c-bcb6-e68607ba51da/private_domains",
    "users_url": "/v2/organizations/9f4da245-231c-483c-bcb6-e68607ba51da/users",
    "managers_url": "/v2/organizations/9f4da245-231c-483c-bcb6-e68607ba51da/managers",
    "billing_managers_url": "/v2/organizations/9f4da245-231c-483c-bcb6-e68607ba51da/billing_managers",
    "auditors_url": "/v2/organizations/9f4da245-231c-483c-bcb6-e68607ba51da/auditors",
    "app_events_url": "/v2/organizations/9f4da245-231c-483c-bcb6-e68607ba51da/app_events",
    "space_quota_definitions_url": "/v2/organizations/9f4da245-231c-483c-bcb6-e68607ba51da/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6c6b188e-6aa2-4d74-95e5-27040518eb8d
Content-Length: 1299
X-Content-Type-Options: nosniff