Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Request

Route

PUT /v2/organizations/b0326879-f187-405a-9e5a-1ced1a5a737c/users/uaa-id-123

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.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNCIsImVtYWlsIjoiZW1haWwtOTJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNTk0ODY2NH0.XdgPTlSw-EgsrMO5ecoPZnhjOiWImw6NetXHJ-mmvPc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/b0326879-f187-405a-9e5a-1ced1a5a737c/users/uaa-id-123" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNCIsImVtYWlsIjoiZW1haWwtOTJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNTk0ODY2NH0.XdgPTlSw-EgsrMO5ecoPZnhjOiWImw6NetXHJ-mmvPc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "b0326879-f187-405a-9e5a-1ced1a5a737c",
    "url": "/v2/organizations/b0326879-f187-405a-9e5a-1ced1a5a737c",
    "created_at": "2015-03-03T00:51:04Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1056",
    "billing_enabled": false,
    "quota_definition_guid": "37ea58cd-29b1-4bb3-a6f4-67dd2a9fb8ef",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/37ea58cd-29b1-4bb3-a6f4-67dd2a9fb8ef",
    "spaces_url": "/v2/organizations/b0326879-f187-405a-9e5a-1ced1a5a737c/spaces",
    "domains_url": "/v2/organizations/b0326879-f187-405a-9e5a-1ced1a5a737c/domains",
    "private_domains_url": "/v2/organizations/b0326879-f187-405a-9e5a-1ced1a5a737c/private_domains",
    "users_url": "/v2/organizations/b0326879-f187-405a-9e5a-1ced1a5a737c/users",
    "managers_url": "/v2/organizations/b0326879-f187-405a-9e5a-1ced1a5a737c/managers",
    "billing_managers_url": "/v2/organizations/b0326879-f187-405a-9e5a-1ced1a5a737c/billing_managers",
    "auditors_url": "/v2/organizations/b0326879-f187-405a-9e5a-1ced1a5a737c/auditors",
    "app_events_url": "/v2/organizations/b0326879-f187-405a-9e5a-1ced1a5a737c/app_events",
    "space_quota_definitions_url": "/v2/organizations/b0326879-f187-405a-9e5a-1ced1a5a737c/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 724550e9-d532-488f-b1c7-a499a13ed35a
Content-Length: 1300
X-Content-Type-Options: nosniff