Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Request

Route

PUT /v2/organizations/19e0cd70-d862-4fef-bd60-2360fa41351b/users/uaa-id-270

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MSIsImVtYWlsIjoiZW1haWwtMjIzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDZ9.-UH0qnofsFjh5EjNpNX_CW9o4wNhPhRADU2dXV2ERVI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/19e0cd70-d862-4fef-bd60-2360fa41351b/users/uaa-id-270" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MSIsImVtYWlsIjoiZW1haWwtMjIzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDZ9.-UH0qnofsFjh5EjNpNX_CW9o4wNhPhRADU2dXV2ERVI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "19e0cd70-d862-4fef-bd60-2360fa41351b",
    "url": "/v2/organizations/19e0cd70-d862-4fef-bd60-2360fa41351b",
    "created_at": "2016-03-14T22:30:46Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2191",
    "billing_enabled": false,
    "quota_definition_guid": "53a85ed9-bd94-4a3f-930a-a396616eed01",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/53a85ed9-bd94-4a3f-930a-a396616eed01",
    "spaces_url": "/v2/organizations/19e0cd70-d862-4fef-bd60-2360fa41351b/spaces",
    "domains_url": "/v2/organizations/19e0cd70-d862-4fef-bd60-2360fa41351b/domains",
    "private_domains_url": "/v2/organizations/19e0cd70-d862-4fef-bd60-2360fa41351b/private_domains",
    "users_url": "/v2/organizations/19e0cd70-d862-4fef-bd60-2360fa41351b/users",
    "managers_url": "/v2/organizations/19e0cd70-d862-4fef-bd60-2360fa41351b/managers",
    "billing_managers_url": "/v2/organizations/19e0cd70-d862-4fef-bd60-2360fa41351b/billing_managers",
    "auditors_url": "/v2/organizations/19e0cd70-d862-4fef-bd60-2360fa41351b/auditors",
    "app_events_url": "/v2/organizations/19e0cd70-d862-4fef-bd60-2360fa41351b/app_events",
    "space_quota_definitions_url": "/v2/organizations/19e0cd70-d862-4fef-bd60-2360fa41351b/space_quota_definitions"
  }
}

Headers

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