Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization by Username

PUT v2/organizations/:guid/managers

Request

Route

PUT v2/organizations/3d8cb2cf-3dfe-403e-94ac-2ebd6da0f829/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.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NCIsImVtYWlsIjoiZW1haWwtMTE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5Nzh9.nnATuQp-Y25mFAOVrdxJrELKG601NNToQgTnq1D0v3g
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/3d8cb2cf-3dfe-403e-94ac-2ebd6da0f829/managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NCIsImVtYWlsIjoiZW1haWwtMTE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5Nzh9.nnATuQp-Y25mFAOVrdxJrELKG601NNToQgTnq1D0v3g" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "3d8cb2cf-3dfe-403e-94ac-2ebd6da0f829",
    "url": "/v2/organizations/3d8cb2cf-3dfe-403e-94ac-2ebd6da0f829",
    "created_at": "2016-01-13T17:29:38Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-514",
    "billing_enabled": false,
    "quota_definition_guid": "f1731a9e-a49a-4e9f-83f1-7793a0c84ad1",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/f1731a9e-a49a-4e9f-83f1-7793a0c84ad1",
    "spaces_url": "/v2/organizations/3d8cb2cf-3dfe-403e-94ac-2ebd6da0f829/spaces",
    "domains_url": "/v2/organizations/3d8cb2cf-3dfe-403e-94ac-2ebd6da0f829/domains",
    "private_domains_url": "/v2/organizations/3d8cb2cf-3dfe-403e-94ac-2ebd6da0f829/private_domains",
    "users_url": "/v2/organizations/3d8cb2cf-3dfe-403e-94ac-2ebd6da0f829/users",
    "managers_url": "/v2/organizations/3d8cb2cf-3dfe-403e-94ac-2ebd6da0f829/managers",
    "billing_managers_url": "/v2/organizations/3d8cb2cf-3dfe-403e-94ac-2ebd6da0f829/billing_managers",
    "auditors_url": "/v2/organizations/3d8cb2cf-3dfe-403e-94ac-2ebd6da0f829/auditors",
    "app_events_url": "/v2/organizations/3d8cb2cf-3dfe-403e-94ac-2ebd6da0f829/app_events",
    "space_quota_definitions_url": "/v2/organizations/3d8cb2cf-3dfe-403e-94ac-2ebd6da0f829/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1299
X-Content-Type-Options: nosniff