Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Request

Route

PUT /v2/organizations/b4197c3b-ef7d-4857-9398-5390f23959ab/users/uaa-id-181

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MiIsImVtYWlsIjoiZW1haWwtMTEyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2MzN9.C32i1To5wl_kQW_lQNtIzi0AV2LKZ2b-AKBzbzh856A
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/b4197c3b-ef7d-4857-9398-5390f23959ab/users/uaa-id-181" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MiIsImVtYWlsIjoiZW1haWwtMTEyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2MzN9.C32i1To5wl_kQW_lQNtIzi0AV2LKZ2b-AKBzbzh856A" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "b4197c3b-ef7d-4857-9398-5390f23959ab",
    "url": "/v2/organizations/b4197c3b-ef7d-4857-9398-5390f23959ab",
    "created_at": "2015-05-07T23:37:13Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1237",
    "billing_enabled": false,
    "quota_definition_guid": "2979b998-cbc4-4686-afd5-bbaacde34c4b",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/2979b998-cbc4-4686-afd5-bbaacde34c4b",
    "spaces_url": "/v2/organizations/b4197c3b-ef7d-4857-9398-5390f23959ab/spaces",
    "domains_url": "/v2/organizations/b4197c3b-ef7d-4857-9398-5390f23959ab/domains",
    "private_domains_url": "/v2/organizations/b4197c3b-ef7d-4857-9398-5390f23959ab/private_domains",
    "users_url": "/v2/organizations/b4197c3b-ef7d-4857-9398-5390f23959ab/users",
    "managers_url": "/v2/organizations/b4197c3b-ef7d-4857-9398-5390f23959ab/managers",
    "billing_managers_url": "/v2/organizations/b4197c3b-ef7d-4857-9398-5390f23959ab/billing_managers",
    "auditors_url": "/v2/organizations/b4197c3b-ef7d-4857-9398-5390f23959ab/auditors",
    "app_events_url": "/v2/organizations/b4197c3b-ef7d-4857-9398-5390f23959ab/app_events",
    "space_quota_definitions_url": "/v2/organizations/b4197c3b-ef7d-4857-9398-5390f23959ab/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5a07d973-02ea-4c72-8b30-d11010c74a25
Content-Length: 1300
X-Content-Type-Options: nosniff