Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Request

Route

PUT /v2/organizations/6b526d2c-e62b-4247-9bed-ab27bbb8919f/users/uaa-id-124

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNSIsImVtYWlsIjoiZW1haWwtNzVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODg1NTY2OH0.VradgW6FtOLqEilC3s5Af-F0wlAZ73A2tNA7mdK-ZuA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/6b526d2c-e62b-4247-9bed-ab27bbb8919f/users/uaa-id-124" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNSIsImVtYWlsIjoiZW1haWwtNzVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODg1NTY2OH0.VradgW6FtOLqEilC3s5Af-F0wlAZ73A2tNA7mdK-ZuA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "6b526d2c-e62b-4247-9bed-ab27bbb8919f",
    "url": "/v2/organizations/6b526d2c-e62b-4247-9bed-ab27bbb8919f",
    "created_at": "2016-03-17T21:41:08Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-362",
    "billing_enabled": false,
    "quota_definition_guid": "db011ab0-ebd6-4ec1-b770-f15957409b93",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/db011ab0-ebd6-4ec1-b770-f15957409b93",
    "spaces_url": "/v2/organizations/6b526d2c-e62b-4247-9bed-ab27bbb8919f/spaces",
    "domains_url": "/v2/organizations/6b526d2c-e62b-4247-9bed-ab27bbb8919f/domains",
    "private_domains_url": "/v2/organizations/6b526d2c-e62b-4247-9bed-ab27bbb8919f/private_domains",
    "users_url": "/v2/organizations/6b526d2c-e62b-4247-9bed-ab27bbb8919f/users",
    "managers_url": "/v2/organizations/6b526d2c-e62b-4247-9bed-ab27bbb8919f/managers",
    "billing_managers_url": "/v2/organizations/6b526d2c-e62b-4247-9bed-ab27bbb8919f/billing_managers",
    "auditors_url": "/v2/organizations/6b526d2c-e62b-4247-9bed-ab27bbb8919f/auditors",
    "app_events_url": "/v2/organizations/6b526d2c-e62b-4247-9bed-ab27bbb8919f/app_events",
    "space_quota_definitions_url": "/v2/organizations/6b526d2c-e62b-4247-9bed-ab27bbb8919f/space_quota_definitions"
  }
}

Headers

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