Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Request

Route

PUT /v2/organizations/4dd63e71-4fce-4ffc-b390-e290fba664d4/users/uaa-id-107

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwOCIsImVtYWlsIjoiZW1haWwtNjdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MjYwMTUyOX0.XO9mXTCcjr73Qbf5I5a2t5Blki2oW6-jkdhnpU_ShDc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/4dd63e71-4fce-4ffc-b390-e290fba664d4/users/uaa-id-107" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwOCIsImVtYWlsIjoiZW1haWwtNjdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MjYwMTUyOX0.XO9mXTCcjr73Qbf5I5a2t5Blki2oW6-jkdhnpU_ShDc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "4dd63e71-4fce-4ffc-b390-e290fba664d4",
    "url": "/v2/organizations/4dd63e71-4fce-4ffc-b390-e290fba664d4",
    "created_at": "2015-09-11T18:38:49Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-280",
    "billing_enabled": false,
    "quota_definition_guid": "2911907d-3e3a-42cc-b185-bf533caa9ffa",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/2911907d-3e3a-42cc-b185-bf533caa9ffa",
    "spaces_url": "/v2/organizations/4dd63e71-4fce-4ffc-b390-e290fba664d4/spaces",
    "domains_url": "/v2/organizations/4dd63e71-4fce-4ffc-b390-e290fba664d4/domains",
    "private_domains_url": "/v2/organizations/4dd63e71-4fce-4ffc-b390-e290fba664d4/private_domains",
    "users_url": "/v2/organizations/4dd63e71-4fce-4ffc-b390-e290fba664d4/users",
    "managers_url": "/v2/organizations/4dd63e71-4fce-4ffc-b390-e290fba664d4/managers",
    "billing_managers_url": "/v2/organizations/4dd63e71-4fce-4ffc-b390-e290fba664d4/billing_managers",
    "auditors_url": "/v2/organizations/4dd63e71-4fce-4ffc-b390-e290fba664d4/auditors",
    "app_events_url": "/v2/organizations/4dd63e71-4fce-4ffc-b390-e290fba664d4/app_events",
    "space_quota_definitions_url": "/v2/organizations/4dd63e71-4fce-4ffc-b390-e290fba664d4/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8aef2c5a-9337-41ca-8a6e-ca4d6c63f480
Content-Length: 1299
X-Content-Type-Options: nosniff