Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization by Username

PUT v2/organizations/:guid/managers

Request

Route

PUT v2/organizations/129d4612-9ed1-4ca0-9de7-5a224634d822/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.eyJ1c2VyX2lkIjoidWFhLWlkLTExNiIsImVtYWlsIjoiZW1haWwtNzBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODg1NTY2OH0.mf20NX4QnpUVUSnOJCDQGTwbHVNl_EvTS6oHTU669KY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/129d4612-9ed1-4ca0-9de7-5a224634d822/managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNiIsImVtYWlsIjoiZW1haWwtNzBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODg1NTY2OH0.mf20NX4QnpUVUSnOJCDQGTwbHVNl_EvTS6oHTU669KY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "129d4612-9ed1-4ca0-9de7-5a224634d822",
    "url": "/v2/organizations/129d4612-9ed1-4ca0-9de7-5a224634d822",
    "created_at": "2016-03-17T21:41:08Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-346",
    "billing_enabled": false,
    "quota_definition_guid": "f26bef20-61cc-4840-8b8b-f99cbe506ead",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/f26bef20-61cc-4840-8b8b-f99cbe506ead",
    "spaces_url": "/v2/organizations/129d4612-9ed1-4ca0-9de7-5a224634d822/spaces",
    "domains_url": "/v2/organizations/129d4612-9ed1-4ca0-9de7-5a224634d822/domains",
    "private_domains_url": "/v2/organizations/129d4612-9ed1-4ca0-9de7-5a224634d822/private_domains",
    "users_url": "/v2/organizations/129d4612-9ed1-4ca0-9de7-5a224634d822/users",
    "managers_url": "/v2/organizations/129d4612-9ed1-4ca0-9de7-5a224634d822/managers",
    "billing_managers_url": "/v2/organizations/129d4612-9ed1-4ca0-9de7-5a224634d822/billing_managers",
    "auditors_url": "/v2/organizations/129d4612-9ed1-4ca0-9de7-5a224634d822/auditors",
    "app_events_url": "/v2/organizations/129d4612-9ed1-4ca0-9de7-5a224634d822/app_events",
    "space_quota_definitions_url": "/v2/organizations/129d4612-9ed1-4ca0-9de7-5a224634d822/space_quota_definitions"
  }
}

Headers

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