Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization by Username

PUT v2/organizations/:guid/managers

Request

Route

PUT v2/organizations/f8673a2d-8ce3-496a-9c75-4c44b26b21f8/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.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NyIsImVtYWlsIjoiZW1haWwtMjkwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyODR9.5gx6wf7UiSwutid6J7MQOrI2t1Fx4RxIhl1jG3B8gCg
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/f8673a2d-8ce3-496a-9c75-4c44b26b21f8/managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NyIsImVtYWlsIjoiZW1haWwtMjkwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyODR9.5gx6wf7UiSwutid6J7MQOrI2t1Fx4RxIhl1jG3B8gCg" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "f8673a2d-8ce3-496a-9c75-4c44b26b21f8",
    "url": "/v2/organizations/f8673a2d-8ce3-496a-9c75-4c44b26b21f8",
    "created_at": "2016-01-19T19:41:24Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2462",
    "billing_enabled": false,
    "quota_definition_guid": "29c08926-399b-4c5d-b0d6-5d9319c95e3c",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/29c08926-399b-4c5d-b0d6-5d9319c95e3c",
    "spaces_url": "/v2/organizations/f8673a2d-8ce3-496a-9c75-4c44b26b21f8/spaces",
    "domains_url": "/v2/organizations/f8673a2d-8ce3-496a-9c75-4c44b26b21f8/domains",
    "private_domains_url": "/v2/organizations/f8673a2d-8ce3-496a-9c75-4c44b26b21f8/private_domains",
    "users_url": "/v2/organizations/f8673a2d-8ce3-496a-9c75-4c44b26b21f8/users",
    "managers_url": "/v2/organizations/f8673a2d-8ce3-496a-9c75-4c44b26b21f8/managers",
    "billing_managers_url": "/v2/organizations/f8673a2d-8ce3-496a-9c75-4c44b26b21f8/billing_managers",
    "auditors_url": "/v2/organizations/f8673a2d-8ce3-496a-9c75-4c44b26b21f8/auditors",
    "app_events_url": "/v2/organizations/f8673a2d-8ce3-496a-9c75-4c44b26b21f8/app_events",
    "space_quota_definitions_url": "/v2/organizations/f8673a2d-8ce3-496a-9c75-4c44b26b21f8/space_quota_definitions"
  }
}

Headers

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