Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Request

Route

PUT /v2/organizations/3f24080f-c468-49eb-bf2c-2e163fa1e17d/users/uaa-id-449

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1MCIsImVtYWlsIjoiZW1haWwtMzIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzN9.7jhsE94--1mJRXBUsr5fboeo72BtUEJkx5Prgz6M-B4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/3f24080f-c468-49eb-bf2c-2e163fa1e17d/users/uaa-id-449" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1MCIsImVtYWlsIjoiZW1haWwtMzIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NzN9.7jhsE94--1mJRXBUsr5fboeo72BtUEJkx5Prgz6M-B4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "3f24080f-c468-49eb-bf2c-2e163fa1e17d",
    "url": "/v2/organizations/3f24080f-c468-49eb-bf2c-2e163fa1e17d",
    "created_at": "2015-10-15T23:52:53Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2460",
    "billing_enabled": false,
    "quota_definition_guid": "7442aa31-9eab-474d-8e98-8ef81e5201e1",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/7442aa31-9eab-474d-8e98-8ef81e5201e1",
    "spaces_url": "/v2/organizations/3f24080f-c468-49eb-bf2c-2e163fa1e17d/spaces",
    "domains_url": "/v2/organizations/3f24080f-c468-49eb-bf2c-2e163fa1e17d/domains",
    "private_domains_url": "/v2/organizations/3f24080f-c468-49eb-bf2c-2e163fa1e17d/private_domains",
    "users_url": "/v2/organizations/3f24080f-c468-49eb-bf2c-2e163fa1e17d/users",
    "managers_url": "/v2/organizations/3f24080f-c468-49eb-bf2c-2e163fa1e17d/managers",
    "billing_managers_url": "/v2/organizations/3f24080f-c468-49eb-bf2c-2e163fa1e17d/billing_managers",
    "auditors_url": "/v2/organizations/3f24080f-c468-49eb-bf2c-2e163fa1e17d/auditors",
    "app_events_url": "/v2/organizations/3f24080f-c468-49eb-bf2c-2e163fa1e17d/app_events",
    "space_quota_definitions_url": "/v2/organizations/3f24080f-c468-49eb-bf2c-2e163fa1e17d/space_quota_definitions"
  }
}

Headers

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