Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Request

Route

PUT /v2/organizations/584664d0-e5bb-449b-bfe5-0136c30c4ff8/users/uaa-id-109

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExMCIsImVtYWlsIjoiZW1haWwtNjhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzODY0MTc5MX0.jXT2KAoE_tp6U7pS82ZEAiC3R3HYmIdWqPhfhwXb4JM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/584664d0-e5bb-449b-bfe5-0136c30c4ff8/users/uaa-id-109" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExMCIsImVtYWlsIjoiZW1haWwtNjhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzODY0MTc5MX0.jXT2KAoE_tp6U7pS82ZEAiC3R3HYmIdWqPhfhwXb4JM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "584664d0-e5bb-449b-bfe5-0136c30c4ff8",
    "url": "/v2/organizations/584664d0-e5bb-449b-bfe5-0136c30c4ff8",
    "created_at": "2015-07-27T22:43:11Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-234",
    "billing_enabled": false,
    "quota_definition_guid": "51a2f10b-9803-4f35-ad69-0350ff4b66d4",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/51a2f10b-9803-4f35-ad69-0350ff4b66d4",
    "spaces_url": "/v2/organizations/584664d0-e5bb-449b-bfe5-0136c30c4ff8/spaces",
    "domains_url": "/v2/organizations/584664d0-e5bb-449b-bfe5-0136c30c4ff8/domains",
    "private_domains_url": "/v2/organizations/584664d0-e5bb-449b-bfe5-0136c30c4ff8/private_domains",
    "users_url": "/v2/organizations/584664d0-e5bb-449b-bfe5-0136c30c4ff8/users",
    "managers_url": "/v2/organizations/584664d0-e5bb-449b-bfe5-0136c30c4ff8/managers",
    "billing_managers_url": "/v2/organizations/584664d0-e5bb-449b-bfe5-0136c30c4ff8/billing_managers",
    "auditors_url": "/v2/organizations/584664d0-e5bb-449b-bfe5-0136c30c4ff8/auditors",
    "app_events_url": "/v2/organizations/584664d0-e5bb-449b-bfe5-0136c30c4ff8/app_events",
    "space_quota_definitions_url": "/v2/organizations/584664d0-e5bb-449b-bfe5-0136c30c4ff8/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c485cfb7-816e-410c-87c2-59da1a581622
Content-Length: 1299
X-Content-Type-Options: nosniff