Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Request

Route

PUT /v2/organizations/808c68d1-a07b-4dc6-ab59-eb21fde94756/users/uaa-id-184

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4NSIsImVtYWlsIjoiZW1haWwtMTA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDJ9.Odc-tm4U_zLo5v0CT0C_Osq6GlIikErEccoeGivMGm4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/808c68d1-a07b-4dc6-ab59-eb21fde94756/users/uaa-id-184" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4NSIsImVtYWlsIjoiZW1haWwtMTA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDJ9.Odc-tm4U_zLo5v0CT0C_Osq6GlIikErEccoeGivMGm4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "808c68d1-a07b-4dc6-ab59-eb21fde94756",
    "url": "/v2/organizations/808c68d1-a07b-4dc6-ab59-eb21fde94756",
    "created_at": "2015-09-30T23:30:42Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1288",
    "billing_enabled": false,
    "quota_definition_guid": "1ac6fe6f-d489-4880-871a-da8ef64158b9",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/1ac6fe6f-d489-4880-871a-da8ef64158b9",
    "spaces_url": "/v2/organizations/808c68d1-a07b-4dc6-ab59-eb21fde94756/spaces",
    "domains_url": "/v2/organizations/808c68d1-a07b-4dc6-ab59-eb21fde94756/domains",
    "private_domains_url": "/v2/organizations/808c68d1-a07b-4dc6-ab59-eb21fde94756/private_domains",
    "users_url": "/v2/organizations/808c68d1-a07b-4dc6-ab59-eb21fde94756/users",
    "managers_url": "/v2/organizations/808c68d1-a07b-4dc6-ab59-eb21fde94756/managers",
    "billing_managers_url": "/v2/organizations/808c68d1-a07b-4dc6-ab59-eb21fde94756/billing_managers",
    "auditors_url": "/v2/organizations/808c68d1-a07b-4dc6-ab59-eb21fde94756/auditors",
    "app_events_url": "/v2/organizations/808c68d1-a07b-4dc6-ab59-eb21fde94756/app_events",
    "space_quota_definitions_url": "/v2/organizations/808c68d1-a07b-4dc6-ab59-eb21fde94756/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 76d8bea8-fe20-4897-ad8a-39a15632b632
Content-Length: 1300
X-Content-Type-Options: nosniff