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.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNSIsImVtYWlsIjoiZW1haWwtMTY3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxNDJ9.KaJ5xqGG_a9SR78o51iIcM1nFPzoTYcvMmRleiNR0hk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/organizations/d157d9b3-e39e-40da-9e32-7137b302bdf8/users/uaa-id-234

cURL

curl "https://api.[your-domain.com]/v2/organizations/d157d9b3-e39e-40da-9e32-7137b302bdf8/users/uaa-id-234" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNSIsImVtYWlsIjoiZW1haWwtMTY3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxNDJ9.KaJ5xqGG_a9SR78o51iIcM1nFPzoTYcvMmRleiNR0hk" \
	-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: fe718ce7-6ca2-4c2d-a8a2-7857920c6cb9
Content-Length: 1304
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "d157d9b3-e39e-40da-9e32-7137b302bdf8",
    "url": "/v2/organizations/d157d9b3-e39e-40da-9e32-7137b302bdf8",
    "created_at": "2014-11-05T01:02:22+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-790",
    "billing_enabled": false,
    "quota_definition_guid": "fb56922d-06d2-4ea0-97e0-4cb02b4f43e6",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/fb56922d-06d2-4ea0-97e0-4cb02b4f43e6",
    "spaces_url": "/v2/organizations/d157d9b3-e39e-40da-9e32-7137b302bdf8/spaces",
    "domains_url": "/v2/organizations/d157d9b3-e39e-40da-9e32-7137b302bdf8/domains",
    "private_domains_url": "/v2/organizations/d157d9b3-e39e-40da-9e32-7137b302bdf8/private_domains",
    "users_url": "/v2/organizations/d157d9b3-e39e-40da-9e32-7137b302bdf8/users",
    "managers_url": "/v2/organizations/d157d9b3-e39e-40da-9e32-7137b302bdf8/managers",
    "billing_managers_url": "/v2/organizations/d157d9b3-e39e-40da-9e32-7137b302bdf8/billing_managers",
    "auditors_url": "/v2/organizations/d157d9b3-e39e-40da-9e32-7137b302bdf8/auditors",
    "app_events_url": "/v2/organizations/d157d9b3-e39e-40da-9e32-7137b302bdf8/app_events",
    "space_quota_definitions_url": "/v2/organizations/d157d9b3-e39e-40da-9e32-7137b302bdf8/space_quota_definitions"
  }
}