Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Request

Route

PUT /v2/organizations/ec6f6979-b34c-4e23-b70b-e99e777e2498/users/uaa-id-138

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/ec6f6979-b34c-4e23-b70b-e99e777e2498/users/uaa-id-138" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzOSIsImVtYWlsIjoiZW1haWwtMTA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDJ9.by0_7uJuwvVesEmG4YwtsLkz34bdggtour1lYT1meso" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "ec6f6979-b34c-4e23-b70b-e99e777e2498",
    "url": "/v2/organizations/ec6f6979-b34c-4e23-b70b-e99e777e2498",
    "created_at": "2015-03-10T23:11:42Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-395",
    "billing_enabled": false,
    "quota_definition_guid": "79d256cd-5b5c-41ce-a991-4721522434da",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/79d256cd-5b5c-41ce-a991-4721522434da",
    "spaces_url": "/v2/organizations/ec6f6979-b34c-4e23-b70b-e99e777e2498/spaces",
    "domains_url": "/v2/organizations/ec6f6979-b34c-4e23-b70b-e99e777e2498/domains",
    "private_domains_url": "/v2/organizations/ec6f6979-b34c-4e23-b70b-e99e777e2498/private_domains",
    "users_url": "/v2/organizations/ec6f6979-b34c-4e23-b70b-e99e777e2498/users",
    "managers_url": "/v2/organizations/ec6f6979-b34c-4e23-b70b-e99e777e2498/managers",
    "billing_managers_url": "/v2/organizations/ec6f6979-b34c-4e23-b70b-e99e777e2498/billing_managers",
    "auditors_url": "/v2/organizations/ec6f6979-b34c-4e23-b70b-e99e777e2498/auditors",
    "app_events_url": "/v2/organizations/ec6f6979-b34c-4e23-b70b-e99e777e2498/app_events",
    "space_quota_definitions_url": "/v2/organizations/ec6f6979-b34c-4e23-b70b-e99e777e2498/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ebc37ccd-04f5-4e5e-8ec7-2dd54f6ccf47
Content-Length: 1299
X-Content-Type-Options: nosniff