Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Request

Route

PUT /v2/organizations/ff12a7f7-9d2d-49b9-983e-842762ecf0e1/users/uaa-id-267

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2OCIsImVtYWlsIjoiZW1haWwtMTc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODh9.AgXopcNQv3VMRahfVrWJ1xlzb5ILxoX3rNkcgo8-rXU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/ff12a7f7-9d2d-49b9-983e-842762ecf0e1/users/uaa-id-267" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2OCIsImVtYWlsIjoiZW1haWwtMTc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODh9.AgXopcNQv3VMRahfVrWJ1xlzb5ILxoX3rNkcgo8-rXU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "ff12a7f7-9d2d-49b9-983e-842762ecf0e1",
    "url": "/v2/organizations/ff12a7f7-9d2d-49b9-983e-842762ecf0e1",
    "created_at": "2015-12-22T18:28:08Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-794",
    "billing_enabled": false,
    "quota_definition_guid": "d4c5c2cd-c24e-4e95-96c6-f008432e5dac",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/d4c5c2cd-c24e-4e95-96c6-f008432e5dac",
    "spaces_url": "/v2/organizations/ff12a7f7-9d2d-49b9-983e-842762ecf0e1/spaces",
    "domains_url": "/v2/organizations/ff12a7f7-9d2d-49b9-983e-842762ecf0e1/domains",
    "private_domains_url": "/v2/organizations/ff12a7f7-9d2d-49b9-983e-842762ecf0e1/private_domains",
    "users_url": "/v2/organizations/ff12a7f7-9d2d-49b9-983e-842762ecf0e1/users",
    "managers_url": "/v2/organizations/ff12a7f7-9d2d-49b9-983e-842762ecf0e1/managers",
    "billing_managers_url": "/v2/organizations/ff12a7f7-9d2d-49b9-983e-842762ecf0e1/billing_managers",
    "auditors_url": "/v2/organizations/ff12a7f7-9d2d-49b9-983e-842762ecf0e1/auditors",
    "app_events_url": "/v2/organizations/ff12a7f7-9d2d-49b9-983e-842762ecf0e1/app_events",
    "space_quota_definitions_url": "/v2/organizations/ff12a7f7-9d2d-49b9-983e-842762ecf0e1/space_quota_definitions"
  }
}

Headers

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