Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization by Username

PUT v2/organizations/:guid/managers

Request

Route

PUT v2/organizations/b17c7759-2733-44ef-9de5-73785d79a543/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.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNCIsImVtYWlsIjoiZW1haWwtMTIzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDN9.BloV3_yFoW9gIpwK9Jja2Fj3jiTJCSmFLR9QQiZZ388
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/b17c7759-2733-44ef-9de5-73785d79a543/managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNCIsImVtYWlsIjoiZW1haWwtMTIzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDN9.BloV3_yFoW9gIpwK9Jja2Fj3jiTJCSmFLR9QQiZZ388" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "b17c7759-2733-44ef-9de5-73785d79a543",
    "url": "/v2/organizations/b17c7759-2733-44ef-9de5-73785d79a543",
    "created_at": "2015-09-30T23:30:43Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1334",
    "billing_enabled": false,
    "quota_definition_guid": "c85ee544-61aa-4b66-a80f-cf63202c7e37",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/c85ee544-61aa-4b66-a80f-cf63202c7e37",
    "spaces_url": "/v2/organizations/b17c7759-2733-44ef-9de5-73785d79a543/spaces",
    "domains_url": "/v2/organizations/b17c7759-2733-44ef-9de5-73785d79a543/domains",
    "private_domains_url": "/v2/organizations/b17c7759-2733-44ef-9de5-73785d79a543/private_domains",
    "users_url": "/v2/organizations/b17c7759-2733-44ef-9de5-73785d79a543/users",
    "managers_url": "/v2/organizations/b17c7759-2733-44ef-9de5-73785d79a543/managers",
    "billing_managers_url": "/v2/organizations/b17c7759-2733-44ef-9de5-73785d79a543/billing_managers",
    "auditors_url": "/v2/organizations/b17c7759-2733-44ef-9de5-73785d79a543/auditors",
    "app_events_url": "/v2/organizations/b17c7759-2733-44ef-9de5-73785d79a543/app_events",
    "space_quota_definitions_url": "/v2/organizations/b17c7759-2733-44ef-9de5-73785d79a543/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 63802d0d-ea32-414a-8ea7-190d14bfa67f
Content-Length: 1300
X-Content-Type-Options: nosniff