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

Route

PUT /v2/organizations/74965e4b-0340-4c49-8a0a-9362d05daffc/users/uaa-id-106

cURL

curl "https://api.[your-domain.com]/v2/organizations/74965e4b-0340-4c49-8a0a-9362d05daffc/users/uaa-id-106" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwNyIsImVtYWlsIjoiZW1haWwtOTNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxNzQ2MjM1N30.stoLgey5MSMeVdRT3DdyBi18sbKv6-KLfuGzECBH6dI" \
	-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: f200e37a-3e6f-4980-81e4-82dcb737a7a1
Content-Length: 1304
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "74965e4b-0340-4c49-8a0a-9362d05daffc",
    "url": "/v2/organizations/74965e4b-0340-4c49-8a0a-9362d05daffc",
    "created_at": "2014-11-24T19:32:37+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-501",
    "billing_enabled": false,
    "quota_definition_guid": "a44875b2-1d75-4dc0-bf56-dc12ab241b85",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/a44875b2-1d75-4dc0-bf56-dc12ab241b85",
    "spaces_url": "/v2/organizations/74965e4b-0340-4c49-8a0a-9362d05daffc/spaces",
    "domains_url": "/v2/organizations/74965e4b-0340-4c49-8a0a-9362d05daffc/domains",
    "private_domains_url": "/v2/organizations/74965e4b-0340-4c49-8a0a-9362d05daffc/private_domains",
    "users_url": "/v2/organizations/74965e4b-0340-4c49-8a0a-9362d05daffc/users",
    "managers_url": "/v2/organizations/74965e4b-0340-4c49-8a0a-9362d05daffc/managers",
    "billing_managers_url": "/v2/organizations/74965e4b-0340-4c49-8a0a-9362d05daffc/billing_managers",
    "auditors_url": "/v2/organizations/74965e4b-0340-4c49-8a0a-9362d05daffc/auditors",
    "app_events_url": "/v2/organizations/74965e4b-0340-4c49-8a0a-9362d05daffc/app_events",
    "space_quota_definitions_url": "/v2/organizations/74965e4b-0340-4c49-8a0a-9362d05daffc/space_quota_definitions"
  }
}