Home
Version 3
Organizations API

Organizations API

Associate Manager with the Organization by Username

PUT v2/organizations/:guid/managers

Request

Route

PUT v2/organizations/c2d34ded-5c00-4ffb-8819-fb0339894db0/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.eyJ1c2VyX2lkIjoidWFhLWlkLTU5IiwiZW1haWwiOiJlbWFpbC0zNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxMzc0NjIzfQ.-7q7FiV3jvEO7afTRDcAw-Lh6NSbXuqiWJFxIANCp4w
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/c2d34ded-5c00-4ffb-8819-fb0339894db0/managers" -d '{
  "username": "user@example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU5IiwiZW1haWwiOiJlbWFpbC0zNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxMzc0NjIzfQ.-7q7FiV3jvEO7afTRDcAw-Lh6NSbXuqiWJFxIANCp4w" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "c2d34ded-5c00-4ffb-8819-fb0339894db0",
    "url": "/v2/organizations/c2d34ded-5c00-4ffb-8819-fb0339894db0",
    "created_at": "2016-04-16T01:23:43Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-75",
    "billing_enabled": false,
    "quota_definition_guid": "3ea4d90a-4069-4193-9ccd-52dbe8c0bd62",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/3ea4d90a-4069-4193-9ccd-52dbe8c0bd62",
    "spaces_url": "/v2/organizations/c2d34ded-5c00-4ffb-8819-fb0339894db0/spaces",
    "domains_url": "/v2/organizations/c2d34ded-5c00-4ffb-8819-fb0339894db0/domains",
    "private_domains_url": "/v2/organizations/c2d34ded-5c00-4ffb-8819-fb0339894db0/private_domains",
    "users_url": "/v2/organizations/c2d34ded-5c00-4ffb-8819-fb0339894db0/users",
    "managers_url": "/v2/organizations/c2d34ded-5c00-4ffb-8819-fb0339894db0/managers",
    "billing_managers_url": "/v2/organizations/c2d34ded-5c00-4ffb-8819-fb0339894db0/billing_managers",
    "auditors_url": "/v2/organizations/c2d34ded-5c00-4ffb-8819-fb0339894db0/auditors",
    "app_events_url": "/v2/organizations/c2d34ded-5c00-4ffb-8819-fb0339894db0/app_events",
    "space_quota_definitions_url": "/v2/organizations/c2d34ded-5c00-4ffb-8819-fb0339894db0/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 1604a7b2-c8b9-46d1-8823-80c12424326a
Content-Length: 1298
X-Content-Type-Options: nosniff