Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Request

Route

PUT /v2/organizations/a523182a-1df2-4a4b-bc98-a6e33c3fc883/users/uaa-id-143

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NCIsImVtYWlsIjoiZW1haWwtMTA2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5Nzh9.T6ULkbWvVQAdc-KyZjSTMuSQ6DjrEsk5H0GhSmdjuZE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/a523182a-1df2-4a4b-bc98-a6e33c3fc883/users/uaa-id-143" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NCIsImVtYWlsIjoiZW1haWwtMTA2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5Nzh9.T6ULkbWvVQAdc-KyZjSTMuSQ6DjrEsk5H0GhSmdjuZE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "a523182a-1df2-4a4b-bc98-a6e33c3fc883",
    "url": "/v2/organizations/a523182a-1df2-4a4b-bc98-a6e33c3fc883",
    "created_at": "2016-01-13T17:29:38Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-495",
    "billing_enabled": false,
    "quota_definition_guid": "ad209893-cf2e-4436-8f1b-5992e0b58118",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/ad209893-cf2e-4436-8f1b-5992e0b58118",
    "spaces_url": "/v2/organizations/a523182a-1df2-4a4b-bc98-a6e33c3fc883/spaces",
    "domains_url": "/v2/organizations/a523182a-1df2-4a4b-bc98-a6e33c3fc883/domains",
    "private_domains_url": "/v2/organizations/a523182a-1df2-4a4b-bc98-a6e33c3fc883/private_domains",
    "users_url": "/v2/organizations/a523182a-1df2-4a4b-bc98-a6e33c3fc883/users",
    "managers_url": "/v2/organizations/a523182a-1df2-4a4b-bc98-a6e33c3fc883/managers",
    "billing_managers_url": "/v2/organizations/a523182a-1df2-4a4b-bc98-a6e33c3fc883/billing_managers",
    "auditors_url": "/v2/organizations/a523182a-1df2-4a4b-bc98-a6e33c3fc883/auditors",
    "app_events_url": "/v2/organizations/a523182a-1df2-4a4b-bc98-a6e33c3fc883/app_events",
    "space_quota_definitions_url": "/v2/organizations/a523182a-1df2-4a4b-bc98-a6e33c3fc883/space_quota_definitions"
  }
}

Headers

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