Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization by Username

PUT v2/organizations/:guid/managers

Request

Route

PUT v2/organizations/f368d258-ee2e-4ce9-8f03-e86ec3ff2d57/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.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMiIsImVtYWlsIjoiZW1haWwtMTUwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODd9.1c4p2b-Lybsp_BcGnWFtKy1aYLyJiVLjokab1W4PZAo
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/f368d258-ee2e-4ce9-8f03-e86ec3ff2d57/managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMiIsImVtYWlsIjoiZW1haWwtMTUwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODd9.1c4p2b-Lybsp_BcGnWFtKy1aYLyJiVLjokab1W4PZAo" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "f368d258-ee2e-4ce9-8f03-e86ec3ff2d57",
    "url": "/v2/organizations/f368d258-ee2e-4ce9-8f03-e86ec3ff2d57",
    "created_at": "2015-12-22T18:28:07Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-730",
    "billing_enabled": false,
    "quota_definition_guid": "f243333b-53a6-4e22-9115-312c1960f3a2",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/f243333b-53a6-4e22-9115-312c1960f3a2",
    "spaces_url": "/v2/organizations/f368d258-ee2e-4ce9-8f03-e86ec3ff2d57/spaces",
    "domains_url": "/v2/organizations/f368d258-ee2e-4ce9-8f03-e86ec3ff2d57/domains",
    "private_domains_url": "/v2/organizations/f368d258-ee2e-4ce9-8f03-e86ec3ff2d57/private_domains",
    "users_url": "/v2/organizations/f368d258-ee2e-4ce9-8f03-e86ec3ff2d57/users",
    "managers_url": "/v2/organizations/f368d258-ee2e-4ce9-8f03-e86ec3ff2d57/managers",
    "billing_managers_url": "/v2/organizations/f368d258-ee2e-4ce9-8f03-e86ec3ff2d57/billing_managers",
    "auditors_url": "/v2/organizations/f368d258-ee2e-4ce9-8f03-e86ec3ff2d57/auditors",
    "app_events_url": "/v2/organizations/f368d258-ee2e-4ce9-8f03-e86ec3ff2d57/app_events",
    "space_quota_definitions_url": "/v2/organizations/f368d258-ee2e-4ce9-8f03-e86ec3ff2d57/space_quota_definitions"
  }
}

Headers

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