Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization by Username

PUT v2/organizations/:guid/managers

Request

Route

PUT v2/organizations/a5059fc7-590b-4e39-a93a-65744d24d683/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.eyJ1c2VyX2lkIjoidWFhLWlkLTExIiwiZW1haWwiOiJlbWFpbC03QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NDJ9.EOBNm8AGGk-u_y78z6R-nSrOcrPkZTWtdE8OKD-w0Vg
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/a5059fc7-590b-4e39-a93a-65744d24d683/managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExIiwiZW1haWwiOiJlbWFpbC03QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NDJ9.EOBNm8AGGk-u_y78z6R-nSrOcrPkZTWtdE8OKD-w0Vg" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "a5059fc7-590b-4e39-a93a-65744d24d683",
    "url": "/v2/organizations/a5059fc7-590b-4e39-a93a-65744d24d683",
    "created_at": "2015-11-13T17:02:22Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-11",
    "billing_enabled": false,
    "quota_definition_guid": "fb8ef66e-9d4f-49b1-bf47-bc329a215dcb",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/fb8ef66e-9d4f-49b1-bf47-bc329a215dcb",
    "spaces_url": "/v2/organizations/a5059fc7-590b-4e39-a93a-65744d24d683/spaces",
    "domains_url": "/v2/organizations/a5059fc7-590b-4e39-a93a-65744d24d683/domains",
    "private_domains_url": "/v2/organizations/a5059fc7-590b-4e39-a93a-65744d24d683/private_domains",
    "users_url": "/v2/organizations/a5059fc7-590b-4e39-a93a-65744d24d683/users",
    "managers_url": "/v2/organizations/a5059fc7-590b-4e39-a93a-65744d24d683/managers",
    "billing_managers_url": "/v2/organizations/a5059fc7-590b-4e39-a93a-65744d24d683/billing_managers",
    "auditors_url": "/v2/organizations/a5059fc7-590b-4e39-a93a-65744d24d683/auditors",
    "app_events_url": "/v2/organizations/a5059fc7-590b-4e39-a93a-65744d24d683/app_events",
    "space_quota_definitions_url": "/v2/organizations/a5059fc7-590b-4e39-a93a-65744d24d683/space_quota_definitions"
  }
}

Headers

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