Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization

PUT /v2/organizations/:guid/managers/:manager_guid

Request

Route

PUT /v2/organizations/8007da3d-e262-4610-b805-d72bc03e3412/managers/uaa-id-130

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMSIsImVtYWlsIjoiZW1haWwtMTAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDF9.6kzhaDNW4wSnMRmV2hEWgEgYRmB7e3KGsAsNwOKLJ9c
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/8007da3d-e262-4610-b805-d72bc03e3412/managers/uaa-id-130" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMSIsImVtYWlsIjoiZW1haWwtMTAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDF9.6kzhaDNW4wSnMRmV2hEWgEgYRmB7e3KGsAsNwOKLJ9c" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "8007da3d-e262-4610-b805-d72bc03e3412",
    "url": "/v2/organizations/8007da3d-e262-4610-b805-d72bc03e3412",
    "created_at": "2015-03-10T23:11:41Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-389",
    "billing_enabled": false,
    "quota_definition_guid": "c4a00c5a-74a7-4a03-9de8-e5777a0d885c",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/c4a00c5a-74a7-4a03-9de8-e5777a0d885c",
    "spaces_url": "/v2/organizations/8007da3d-e262-4610-b805-d72bc03e3412/spaces",
    "domains_url": "/v2/organizations/8007da3d-e262-4610-b805-d72bc03e3412/domains",
    "private_domains_url": "/v2/organizations/8007da3d-e262-4610-b805-d72bc03e3412/private_domains",
    "users_url": "/v2/organizations/8007da3d-e262-4610-b805-d72bc03e3412/users",
    "managers_url": "/v2/organizations/8007da3d-e262-4610-b805-d72bc03e3412/managers",
    "billing_managers_url": "/v2/organizations/8007da3d-e262-4610-b805-d72bc03e3412/billing_managers",
    "auditors_url": "/v2/organizations/8007da3d-e262-4610-b805-d72bc03e3412/auditors",
    "app_events_url": "/v2/organizations/8007da3d-e262-4610-b805-d72bc03e3412/app_events",
    "space_quota_definitions_url": "/v2/organizations/8007da3d-e262-4610-b805-d72bc03e3412/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 1276c1ac-94aa-4abb-8400-297df0e151a6
Content-Length: 1299
X-Content-Type-Options: nosniff