Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Request

Route

PUT /v2/organizations/8e20bd1e-4428-4300-a134-bff50ce26945/users/uaa-id-127

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyOCIsImVtYWlsIjoiZW1haWwtMTEyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTF9.enuI-gJuuh1nUPLiJwhJCUUQBzcqPuBOssVFmBGIoqo
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/8e20bd1e-4428-4300-a134-bff50ce26945/users/uaa-id-127" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyOCIsImVtYWlsIjoiZW1haWwtMTEyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTF9.enuI-gJuuh1nUPLiJwhJCUUQBzcqPuBOssVFmBGIoqo" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "8e20bd1e-4428-4300-a134-bff50ce26945",
    "url": "/v2/organizations/8e20bd1e-4428-4300-a134-bff50ce26945",
    "created_at": "2015-06-16T23:40:51Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-546",
    "billing_enabled": false,
    "quota_definition_guid": "6b5b4b49-6609-4b98-9f00-945700017f73",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/6b5b4b49-6609-4b98-9f00-945700017f73",
    "spaces_url": "/v2/organizations/8e20bd1e-4428-4300-a134-bff50ce26945/spaces",
    "domains_url": "/v2/organizations/8e20bd1e-4428-4300-a134-bff50ce26945/domains",
    "private_domains_url": "/v2/organizations/8e20bd1e-4428-4300-a134-bff50ce26945/private_domains",
    "users_url": "/v2/organizations/8e20bd1e-4428-4300-a134-bff50ce26945/users",
    "managers_url": "/v2/organizations/8e20bd1e-4428-4300-a134-bff50ce26945/managers",
    "billing_managers_url": "/v2/organizations/8e20bd1e-4428-4300-a134-bff50ce26945/billing_managers",
    "auditors_url": "/v2/organizations/8e20bd1e-4428-4300-a134-bff50ce26945/auditors",
    "app_events_url": "/v2/organizations/8e20bd1e-4428-4300-a134-bff50ce26945/app_events",
    "space_quota_definitions_url": "/v2/organizations/8e20bd1e-4428-4300-a134-bff50ce26945/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 4b61fae2-300e-41ff-81ad-335e6a58073f
Content-Length: 1299
X-Content-Type-Options: nosniff