Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization by Username

PUT v2/organizations/:guid/managers

Request

Route

PUT v2/organizations/65c76ffc-40af-41c8-b2a1-897848f1505e/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.eyJ1c2VyX2lkIjoidWFhLWlkLTM1NSIsImVtYWlsIjoiZW1haWwtMjQxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDJ9.dB-2RIgawdqOht3QzcPyetGBmQHoUwH4doBRs8gFAFQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/65c76ffc-40af-41c8-b2a1-897848f1505e/managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1NSIsImVtYWlsIjoiZW1haWwtMjQxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDJ9.dB-2RIgawdqOht3QzcPyetGBmQHoUwH4doBRs8gFAFQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "65c76ffc-40af-41c8-b2a1-897848f1505e",
    "url": "/v2/organizations/65c76ffc-40af-41c8-b2a1-897848f1505e",
    "created_at": "2015-10-07T00:35:42Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2152",
    "billing_enabled": false,
    "quota_definition_guid": "ed33a3a3-1950-4c95-ac56-1e147919c259",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/ed33a3a3-1950-4c95-ac56-1e147919c259",
    "spaces_url": "/v2/organizations/65c76ffc-40af-41c8-b2a1-897848f1505e/spaces",
    "domains_url": "/v2/organizations/65c76ffc-40af-41c8-b2a1-897848f1505e/domains",
    "private_domains_url": "/v2/organizations/65c76ffc-40af-41c8-b2a1-897848f1505e/private_domains",
    "users_url": "/v2/organizations/65c76ffc-40af-41c8-b2a1-897848f1505e/users",
    "managers_url": "/v2/organizations/65c76ffc-40af-41c8-b2a1-897848f1505e/managers",
    "billing_managers_url": "/v2/organizations/65c76ffc-40af-41c8-b2a1-897848f1505e/billing_managers",
    "auditors_url": "/v2/organizations/65c76ffc-40af-41c8-b2a1-897848f1505e/auditors",
    "app_events_url": "/v2/organizations/65c76ffc-40af-41c8-b2a1-897848f1505e/app_events",
    "space_quota_definitions_url": "/v2/organizations/65c76ffc-40af-41c8-b2a1-897848f1505e/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a6b742bd-326f-4638-b576-8e64e17ea20b
Content-Length: 1300
X-Content-Type-Options: nosniff