Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization by Username

PUT v2/organizations/:guid/managers

Request

Route

PUT v2/organizations/4b6a20d8-73bf-41d2-a0f7-e040e0e0f616/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.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNCIsImVtYWlsIjoiZW1haWwtMjQxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDF9.iV4gg88ZM6q8yMzRXq2trcnTB2mQdg1joTJLkaZkiJg
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/4b6a20d8-73bf-41d2-a0f7-e040e0e0f616/managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNCIsImVtYWlsIjoiZW1haWwtMjQxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDF9.iV4gg88ZM6q8yMzRXq2trcnTB2mQdg1joTJLkaZkiJg" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "4b6a20d8-73bf-41d2-a0f7-e040e0e0f616",
    "url": "/v2/organizations/4b6a20d8-73bf-41d2-a0f7-e040e0e0f616",
    "created_at": "2016-02-19T02:04:01Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2331",
    "billing_enabled": false,
    "quota_definition_guid": "188c11f9-3e17-4adf-b555-635ba72e35df",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/188c11f9-3e17-4adf-b555-635ba72e35df",
    "spaces_url": "/v2/organizations/4b6a20d8-73bf-41d2-a0f7-e040e0e0f616/spaces",
    "domains_url": "/v2/organizations/4b6a20d8-73bf-41d2-a0f7-e040e0e0f616/domains",
    "private_domains_url": "/v2/organizations/4b6a20d8-73bf-41d2-a0f7-e040e0e0f616/private_domains",
    "users_url": "/v2/organizations/4b6a20d8-73bf-41d2-a0f7-e040e0e0f616/users",
    "managers_url": "/v2/organizations/4b6a20d8-73bf-41d2-a0f7-e040e0e0f616/managers",
    "billing_managers_url": "/v2/organizations/4b6a20d8-73bf-41d2-a0f7-e040e0e0f616/billing_managers",
    "auditors_url": "/v2/organizations/4b6a20d8-73bf-41d2-a0f7-e040e0e0f616/auditors",
    "app_events_url": "/v2/organizations/4b6a20d8-73bf-41d2-a0f7-e040e0e0f616/app_events",
    "space_quota_definitions_url": "/v2/organizations/4b6a20d8-73bf-41d2-a0f7-e040e0e0f616/space_quota_definitions"
  }
}

Headers

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