Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Request

Route

PUT /v2/organizations/3d450920-1971-4387-acf4-86277179cce4/users/uaa-id-321

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMiIsImVtYWlsIjoiZW1haWwtMjM2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDF9.DKdHVBZFeqQHfFSX1dWbSo2raQSgQOacD3CiAZtwu7U
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/3d450920-1971-4387-acf4-86277179cce4/users/uaa-id-321" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMiIsImVtYWlsIjoiZW1haWwtMjM2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDF9.DKdHVBZFeqQHfFSX1dWbSo2raQSgQOacD3CiAZtwu7U" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "3d450920-1971-4387-acf4-86277179cce4",
    "url": "/v2/organizations/3d450920-1971-4387-acf4-86277179cce4",
    "created_at": "2016-02-19T02:04:01Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2321",
    "billing_enabled": false,
    "quota_definition_guid": "59a9afb2-5f3b-4946-aa0d-ade08d664a08",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/59a9afb2-5f3b-4946-aa0d-ade08d664a08",
    "spaces_url": "/v2/organizations/3d450920-1971-4387-acf4-86277179cce4/spaces",
    "domains_url": "/v2/organizations/3d450920-1971-4387-acf4-86277179cce4/domains",
    "private_domains_url": "/v2/organizations/3d450920-1971-4387-acf4-86277179cce4/private_domains",
    "users_url": "/v2/organizations/3d450920-1971-4387-acf4-86277179cce4/users",
    "managers_url": "/v2/organizations/3d450920-1971-4387-acf4-86277179cce4/managers",
    "billing_managers_url": "/v2/organizations/3d450920-1971-4387-acf4-86277179cce4/billing_managers",
    "auditors_url": "/v2/organizations/3d450920-1971-4387-acf4-86277179cce4/auditors",
    "app_events_url": "/v2/organizations/3d450920-1971-4387-acf4-86277179cce4/app_events",
    "space_quota_definitions_url": "/v2/organizations/3d450920-1971-4387-acf4-86277179cce4/space_quota_definitions"
  }
}

Headers

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