Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

PUT /v2/organizations/:guid/users/:user_guid

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTczIiwiZW1haWwiOiJlbWFpbC01NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MTM3MzY0fQ.LN1QMgSyMXfBc68loPj7rA5-wrB6nYzmR0lCekkq5DY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/organizations/6f9b1bdd-7e56-40fd-8bbb-2ca67ab1de73/users/uaa-id-72

cURL

curl "https://api.[your-domain.com]/v2/organizations/6f9b1bdd-7e56-40fd-8bbb-2ca67ab1de73/users/uaa-id-72" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTczIiwiZW1haWwiOiJlbWFpbC01NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MTM3MzY0fQ.LN1QMgSyMXfBc68loPj7rA5-wrB6nYzmR0lCekkq5DY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 67af8115-3e89-453b-88c1-443b287160b8
Content-Length: 1299
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "6f9b1bdd-7e56-40fd-8bbb-2ca67ab1de73",
    "url": "/v2/organizations/6f9b1bdd-7e56-40fd-8bbb-2ca67ab1de73",
    "created_at": "2015-02-10T01:42:44Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-124",
    "billing_enabled": false,
    "quota_definition_guid": "a7329790-3847-4b64-b115-638e630a6431",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/a7329790-3847-4b64-b115-638e630a6431",
    "spaces_url": "/v2/organizations/6f9b1bdd-7e56-40fd-8bbb-2ca67ab1de73/spaces",
    "domains_url": "/v2/organizations/6f9b1bdd-7e56-40fd-8bbb-2ca67ab1de73/domains",
    "private_domains_url": "/v2/organizations/6f9b1bdd-7e56-40fd-8bbb-2ca67ab1de73/private_domains",
    "users_url": "/v2/organizations/6f9b1bdd-7e56-40fd-8bbb-2ca67ab1de73/users",
    "managers_url": "/v2/organizations/6f9b1bdd-7e56-40fd-8bbb-2ca67ab1de73/managers",
    "billing_managers_url": "/v2/organizations/6f9b1bdd-7e56-40fd-8bbb-2ca67ab1de73/billing_managers",
    "auditors_url": "/v2/organizations/6f9b1bdd-7e56-40fd-8bbb-2ca67ab1de73/auditors",
    "app_events_url": "/v2/organizations/6f9b1bdd-7e56-40fd-8bbb-2ca67ab1de73/app_events",
    "space_quota_definitions_url": "/v2/organizations/6f9b1bdd-7e56-40fd-8bbb-2ca67ab1de73/space_quota_definitions"
  }
}