Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization by Username

PUT v2/organizations/:guid/managers

Request

Route

PUT v2/organizations/94a17736-00db-4a12-95fd-0ac2453af255/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.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMCIsImVtYWlsIjoiZW1haWwtNTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjI5OX0.Qbuj8NXtHLps3E83_8qGwpi2S564NHojgl5vsMd9rYE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/94a17736-00db-4a12-95fd-0ac2453af255/managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMCIsImVtYWlsIjoiZW1haWwtNTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjI5OX0.Qbuj8NXtHLps3E83_8qGwpi2S564NHojgl5vsMd9rYE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "94a17736-00db-4a12-95fd-0ac2453af255",
    "url": "/v2/organizations/94a17736-00db-4a12-95fd-0ac2453af255",
    "created_at": "2015-10-13T17:31:39Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-223",
    "billing_enabled": false,
    "quota_definition_guid": "0c470629-0a4f-4675-8649-b9d83a342ea3",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/0c470629-0a4f-4675-8649-b9d83a342ea3",
    "spaces_url": "/v2/organizations/94a17736-00db-4a12-95fd-0ac2453af255/spaces",
    "domains_url": "/v2/organizations/94a17736-00db-4a12-95fd-0ac2453af255/domains",
    "private_domains_url": "/v2/organizations/94a17736-00db-4a12-95fd-0ac2453af255/private_domains",
    "users_url": "/v2/organizations/94a17736-00db-4a12-95fd-0ac2453af255/users",
    "managers_url": "/v2/organizations/94a17736-00db-4a12-95fd-0ac2453af255/managers",
    "billing_managers_url": "/v2/organizations/94a17736-00db-4a12-95fd-0ac2453af255/billing_managers",
    "auditors_url": "/v2/organizations/94a17736-00db-4a12-95fd-0ac2453af255/auditors",
    "app_events_url": "/v2/organizations/94a17736-00db-4a12-95fd-0ac2453af255/app_events",
    "space_quota_definitions_url": "/v2/organizations/94a17736-00db-4a12-95fd-0ac2453af255/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 528558f0-4d90-4bdc-9723-64446ff85489
Content-Length: 1299
X-Content-Type-Options: nosniff