Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization by Username

PUT v2/organizations/:guid/managers

Request

Route

PUT v2/organizations/f3f7d2a9-1078-4724-8523-d70be83c46dd/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.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMCIsImVtYWlsIjoiZW1haWwtMjM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDd9.7sB4ahWnzeYtWu2wjiRwYCCrouT761CmQe_G9PrKEhA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/f3f7d2a9-1078-4724-8523-d70be83c46dd/managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMCIsImVtYWlsIjoiZW1haWwtMjM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDd9.7sB4ahWnzeYtWu2wjiRwYCCrouT761CmQe_G9PrKEhA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "f3f7d2a9-1078-4724-8523-d70be83c46dd",
    "url": "/v2/organizations/f3f7d2a9-1078-4724-8523-d70be83c46dd",
    "created_at": "2016-03-14T22:30:47Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2226",
    "billing_enabled": false,
    "quota_definition_guid": "24d6844c-2616-43c9-a57c-a58f3de6f84c",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/24d6844c-2616-43c9-a57c-a58f3de6f84c",
    "spaces_url": "/v2/organizations/f3f7d2a9-1078-4724-8523-d70be83c46dd/spaces",
    "domains_url": "/v2/organizations/f3f7d2a9-1078-4724-8523-d70be83c46dd/domains",
    "private_domains_url": "/v2/organizations/f3f7d2a9-1078-4724-8523-d70be83c46dd/private_domains",
    "users_url": "/v2/organizations/f3f7d2a9-1078-4724-8523-d70be83c46dd/users",
    "managers_url": "/v2/organizations/f3f7d2a9-1078-4724-8523-d70be83c46dd/managers",
    "billing_managers_url": "/v2/organizations/f3f7d2a9-1078-4724-8523-d70be83c46dd/billing_managers",
    "auditors_url": "/v2/organizations/f3f7d2a9-1078-4724-8523-d70be83c46dd/auditors",
    "app_events_url": "/v2/organizations/f3f7d2a9-1078-4724-8523-d70be83c46dd/app_events",
    "space_quota_definitions_url": "/v2/organizations/f3f7d2a9-1078-4724-8523-d70be83c46dd/space_quota_definitions"
  }
}

Headers

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