Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization by Username

PUT v2/organizations/:guid/managers

Request

Route

PUT v2/organizations/67e346dc-4440-4a39-9466-1e48cdb1d140/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.eyJ1c2VyX2lkIjoidWFhLWlkLTEzOSIsImVtYWlsIjoiZW1haWwtMTI4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4Mzh9.8_e0yZ5d8NX-zIpfWeh-IyJiGASPvKix9GPKXTmYK3A
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/67e346dc-4440-4a39-9466-1e48cdb1d140/managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzOSIsImVtYWlsIjoiZW1haWwtMTI4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4Mzh9.8_e0yZ5d8NX-zIpfWeh-IyJiGASPvKix9GPKXTmYK3A" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "67e346dc-4440-4a39-9466-1e48cdb1d140",
    "url": "/v2/organizations/67e346dc-4440-4a39-9466-1e48cdb1d140",
    "created_at": "2015-11-03T00:53:58Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-812",
    "billing_enabled": false,
    "quota_definition_guid": "b5dc63b6-8e8a-40c0-beeb-16998f728c90",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/b5dc63b6-8e8a-40c0-beeb-16998f728c90",
    "spaces_url": "/v2/organizations/67e346dc-4440-4a39-9466-1e48cdb1d140/spaces",
    "domains_url": "/v2/organizations/67e346dc-4440-4a39-9466-1e48cdb1d140/domains",
    "private_domains_url": "/v2/organizations/67e346dc-4440-4a39-9466-1e48cdb1d140/private_domains",
    "users_url": "/v2/organizations/67e346dc-4440-4a39-9466-1e48cdb1d140/users",
    "managers_url": "/v2/organizations/67e346dc-4440-4a39-9466-1e48cdb1d140/managers",
    "billing_managers_url": "/v2/organizations/67e346dc-4440-4a39-9466-1e48cdb1d140/billing_managers",
    "auditors_url": "/v2/organizations/67e346dc-4440-4a39-9466-1e48cdb1d140/auditors",
    "app_events_url": "/v2/organizations/67e346dc-4440-4a39-9466-1e48cdb1d140/app_events",
    "space_quota_definitions_url": "/v2/organizations/67e346dc-4440-4a39-9466-1e48cdb1d140/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9be2cdd8-9a17-4a62-ade5-005e0b2f75bd
Content-Length: 1299
X-Content-Type-Options: nosniff