Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization by Username

PUT v2/organizations/:guid/managers

Request

Route

PUT v2/organizations/afa9e6f5-912d-4bd4-a204-34feb83fb822/managers

Parameters

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

Body

Name Description Default Valid Values Example Values
username The user's name
  • user@example.com
{
  "username": "user@example.com"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxIiwiZW1haWwiOiJlbWFpbC0yNUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxOTU4MzkxfQ.YSnYyk-f2Yump5fi3sgZ99-PhbLB264vIMEeGp8SeXA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/afa9e6f5-912d-4bd4-a204-34feb83fb822/managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxIiwiZW1haWwiOiJlbWFpbC0yNUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxOTU4MzkxfQ.YSnYyk-f2Yump5fi3sgZ99-PhbLB264vIMEeGp8SeXA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "afa9e6f5-912d-4bd4-a204-34feb83fb822",
    "url": "/v2/organizations/afa9e6f5-912d-4bd4-a204-34feb83fb822",
    "created_at": "2016-04-22T19:33:11Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-72",
    "billing_enabled": false,
    "quota_definition_guid": "ab0ee480-60b4-4ee6-8e2b-34491cb960f0",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/ab0ee480-60b4-4ee6-8e2b-34491cb960f0",
    "spaces_url": "/v2/organizations/afa9e6f5-912d-4bd4-a204-34feb83fb822/spaces",
    "domains_url": "/v2/organizations/afa9e6f5-912d-4bd4-a204-34feb83fb822/domains",
    "private_domains_url": "/v2/organizations/afa9e6f5-912d-4bd4-a204-34feb83fb822/private_domains",
    "users_url": "/v2/organizations/afa9e6f5-912d-4bd4-a204-34feb83fb822/users",
    "managers_url": "/v2/organizations/afa9e6f5-912d-4bd4-a204-34feb83fb822/managers",
    "billing_managers_url": "/v2/organizations/afa9e6f5-912d-4bd4-a204-34feb83fb822/billing_managers",
    "auditors_url": "/v2/organizations/afa9e6f5-912d-4bd4-a204-34feb83fb822/auditors",
    "app_events_url": "/v2/organizations/afa9e6f5-912d-4bd4-a204-34feb83fb822/app_events",
    "space_quota_definitions_url": "/v2/organizations/afa9e6f5-912d-4bd4-a204-34feb83fb822/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 569e39a9-1b8b-4b35-a82b-b802642c1f96
Content-Length: 1298
X-Content-Type-Options: nosniff