Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization by Username

PUT v2/organizations/:guid/managers

Request

Route

PUT v2/organizations/8937c14a-919a-4e00-ad08-949ed3e1a2e3/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.eyJ1c2VyX2lkIjoidWFhLWlkLTQzMCIsImVtYWlsIjoiZW1haWwtMzE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzJ9.AUHA7udHQTofrAgHUINlnw3H-dr3muPVb1uVac0N48o
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/8937c14a-919a-4e00-ad08-949ed3e1a2e3/managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzMCIsImVtYWlsIjoiZW1haWwtMzE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzJ9.AUHA7udHQTofrAgHUINlnw3H-dr3muPVb1uVac0N48o" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "8937c14a-919a-4e00-ad08-949ed3e1a2e3",
    "url": "/v2/organizations/8937c14a-919a-4e00-ad08-949ed3e1a2e3",
    "created_at": "2015-10-15T23:52:52Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2446",
    "billing_enabled": false,
    "quota_definition_guid": "69de3049-ba13-4afc-9fb1-6f8eb8f8e94c",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/69de3049-ba13-4afc-9fb1-6f8eb8f8e94c",
    "spaces_url": "/v2/organizations/8937c14a-919a-4e00-ad08-949ed3e1a2e3/spaces",
    "domains_url": "/v2/organizations/8937c14a-919a-4e00-ad08-949ed3e1a2e3/domains",
    "private_domains_url": "/v2/organizations/8937c14a-919a-4e00-ad08-949ed3e1a2e3/private_domains",
    "users_url": "/v2/organizations/8937c14a-919a-4e00-ad08-949ed3e1a2e3/users",
    "managers_url": "/v2/organizations/8937c14a-919a-4e00-ad08-949ed3e1a2e3/managers",
    "billing_managers_url": "/v2/organizations/8937c14a-919a-4e00-ad08-949ed3e1a2e3/billing_managers",
    "auditors_url": "/v2/organizations/8937c14a-919a-4e00-ad08-949ed3e1a2e3/auditors",
    "app_events_url": "/v2/organizations/8937c14a-919a-4e00-ad08-949ed3e1a2e3/app_events",
    "space_quota_definitions_url": "/v2/organizations/8937c14a-919a-4e00-ad08-949ed3e1a2e3/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6e48860e-0b99-40ba-9df3-1c0145777848
Content-Length: 1300
X-Content-Type-Options: nosniff