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.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NiIsImVtYWlsIjoiZW1haWwtMTM1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDR9.qzKhbGK_2lSlWAz-58aPeZHtzIixJXmLCmbIlEqSlQw
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/organizations/ccee1f54-c650-45e5-af60-f85fb1bdd338/users/uaa-id-175

cURL

curl "https://api.[your-domain.com]/v2/organizations/ccee1f54-c650-45e5-af60-f85fb1bdd338/users/uaa-id-175" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NiIsImVtYWlsIjoiZW1haWwtMTM1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDR9.qzKhbGK_2lSlWAz-58aPeZHtzIixJXmLCmbIlEqSlQw" \
	-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: 148c8756-1b71-40fa-8dd6-480b4d6bf5c1
Content-Length: 1304
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "ccee1f54-c650-45e5-af60-f85fb1bdd338",
    "url": "/v2/organizations/ccee1f54-c650-45e5-af60-f85fb1bdd338",
    "created_at": "2014-11-13T23:38:24+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-719",
    "billing_enabled": false,
    "quota_definition_guid": "692e29f5-81db-4024-a653-c077e67b2fbc",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/692e29f5-81db-4024-a653-c077e67b2fbc",
    "spaces_url": "/v2/organizations/ccee1f54-c650-45e5-af60-f85fb1bdd338/spaces",
    "domains_url": "/v2/organizations/ccee1f54-c650-45e5-af60-f85fb1bdd338/domains",
    "private_domains_url": "/v2/organizations/ccee1f54-c650-45e5-af60-f85fb1bdd338/private_domains",
    "users_url": "/v2/organizations/ccee1f54-c650-45e5-af60-f85fb1bdd338/users",
    "managers_url": "/v2/organizations/ccee1f54-c650-45e5-af60-f85fb1bdd338/managers",
    "billing_managers_url": "/v2/organizations/ccee1f54-c650-45e5-af60-f85fb1bdd338/billing_managers",
    "auditors_url": "/v2/organizations/ccee1f54-c650-45e5-af60-f85fb1bdd338/auditors",
    "app_events_url": "/v2/organizations/ccee1f54-c650-45e5-af60-f85fb1bdd338/app_events",
    "space_quota_definitions_url": "/v2/organizations/ccee1f54-c650-45e5-af60-f85fb1bdd338/space_quota_definitions"
  }
}