Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Request

Route

PUT /v2/organizations/8a456615-8c99-4c49-802d-11ffab147759/users/uaa-id-426

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyNyIsImVtYWlsIjoiZW1haWwtMzEwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDk1MzE1Mzl9.TsaSTAmcHlDGFAKf5_4T_BAbsDkebhOEB2kWZ-E1Ybc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/8a456615-8c99-4c49-802d-11ffab147759/users/uaa-id-426" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyNyIsImVtYWlsIjoiZW1haWwtMzEwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDk1MzE1Mzl9.TsaSTAmcHlDGFAKf5_4T_BAbsDkebhOEB2kWZ-E1Ybc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "8a456615-8c99-4c49-802d-11ffab147759",
    "url": "/v2/organizations/8a456615-8c99-4c49-802d-11ffab147759",
    "created_at": "2015-11-30T23:38:58Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2506",
    "billing_enabled": false,
    "quota_definition_guid": "2166206f-e400-4032-b363-fe04c518a7a7",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/2166206f-e400-4032-b363-fe04c518a7a7",
    "spaces_url": "/v2/organizations/8a456615-8c99-4c49-802d-11ffab147759/spaces",
    "domains_url": "/v2/organizations/8a456615-8c99-4c49-802d-11ffab147759/domains",
    "private_domains_url": "/v2/organizations/8a456615-8c99-4c49-802d-11ffab147759/private_domains",
    "users_url": "/v2/organizations/8a456615-8c99-4c49-802d-11ffab147759/users",
    "managers_url": "/v2/organizations/8a456615-8c99-4c49-802d-11ffab147759/managers",
    "billing_managers_url": "/v2/organizations/8a456615-8c99-4c49-802d-11ffab147759/billing_managers",
    "auditors_url": "/v2/organizations/8a456615-8c99-4c49-802d-11ffab147759/auditors",
    "app_events_url": "/v2/organizations/8a456615-8c99-4c49-802d-11ffab147759/app_events",
    "space_quota_definitions_url": "/v2/organizations/8a456615-8c99-4c49-802d-11ffab147759/space_quota_definitions"
  }
}

Headers

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