Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Request

Route

PUT /v2/organizations/7cf1d146-98c5-42c5-8c1b-521b086ea231/users/uaa-id-365

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/7cf1d146-98c5-42c5-8c1b-521b086ea231/users/uaa-id-365" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NiIsImVtYWlsIjoiZW1haWwtMjc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMjF9.UXHvo3fmFOp86jmiWe3V5W5lBC4MgLHszNf0gC_WZns" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "7cf1d146-98c5-42c5-8c1b-521b086ea231",
    "url": "/v2/organizations/7cf1d146-98c5-42c5-8c1b-521b086ea231",
    "created_at": "2015-06-04T00:05:21Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2181",
    "billing_enabled": false,
    "quota_definition_guid": "d0596b05-25b1-4f49-8d6f-53a24ad93be3",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/d0596b05-25b1-4f49-8d6f-53a24ad93be3",
    "spaces_url": "/v2/organizations/7cf1d146-98c5-42c5-8c1b-521b086ea231/spaces",
    "domains_url": "/v2/organizations/7cf1d146-98c5-42c5-8c1b-521b086ea231/domains",
    "private_domains_url": "/v2/organizations/7cf1d146-98c5-42c5-8c1b-521b086ea231/private_domains",
    "users_url": "/v2/organizations/7cf1d146-98c5-42c5-8c1b-521b086ea231/users",
    "managers_url": "/v2/organizations/7cf1d146-98c5-42c5-8c1b-521b086ea231/managers",
    "billing_managers_url": "/v2/organizations/7cf1d146-98c5-42c5-8c1b-521b086ea231/billing_managers",
    "auditors_url": "/v2/organizations/7cf1d146-98c5-42c5-8c1b-521b086ea231/auditors",
    "app_events_url": "/v2/organizations/7cf1d146-98c5-42c5-8c1b-521b086ea231/app_events",
    "space_quota_definitions_url": "/v2/organizations/7cf1d146-98c5-42c5-8c1b-521b086ea231/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6329d983-8f1c-4d9e-b886-a3c3fe6063fb
Content-Length: 1300
X-Content-Type-Options: nosniff