Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization by Username

PUT v2/organizations/:guid/managers

Request

Route

PUT v2/organizations/c975151e-9f00-46cb-986b-23e5521ba7de/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.eyJ1c2VyX2lkIjoidWFhLWlkLTQwMCIsImVtYWlsIjoiZW1haWwtMjc0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MzJ9.xFV4SIrDum8E6CCGrPluV5zINKSug4cZOtKOvAeNcl8
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/c975151e-9f00-46cb-986b-23e5521ba7de/managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwMCIsImVtYWlsIjoiZW1haWwtMjc0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MzJ9.xFV4SIrDum8E6CCGrPluV5zINKSug4cZOtKOvAeNcl8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "c975151e-9f00-46cb-986b-23e5521ba7de",
    "url": "/v2/organizations/c975151e-9f00-46cb-986b-23e5521ba7de",
    "created_at": "2016-01-26T22:20:32Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2274",
    "billing_enabled": false,
    "quota_definition_guid": "85142dc3-3d54-4588-b716-1e1c6731f7b5",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/85142dc3-3d54-4588-b716-1e1c6731f7b5",
    "spaces_url": "/v2/organizations/c975151e-9f00-46cb-986b-23e5521ba7de/spaces",
    "domains_url": "/v2/organizations/c975151e-9f00-46cb-986b-23e5521ba7de/domains",
    "private_domains_url": "/v2/organizations/c975151e-9f00-46cb-986b-23e5521ba7de/private_domains",
    "users_url": "/v2/organizations/c975151e-9f00-46cb-986b-23e5521ba7de/users",
    "managers_url": "/v2/organizations/c975151e-9f00-46cb-986b-23e5521ba7de/managers",
    "billing_managers_url": "/v2/organizations/c975151e-9f00-46cb-986b-23e5521ba7de/billing_managers",
    "auditors_url": "/v2/organizations/c975151e-9f00-46cb-986b-23e5521ba7de/auditors",
    "app_events_url": "/v2/organizations/c975151e-9f00-46cb-986b-23e5521ba7de/app_events",
    "space_quota_definitions_url": "/v2/organizations/c975151e-9f00-46cb-986b-23e5521ba7de/space_quota_definitions"
  }
}

Headers

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