Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Request

Route

PUT /v2/organizations/10be3546-323c-453b-96b1-a6affb25a993/users/uaa-id-151

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/10be3546-323c-453b-96b1-a6affb25a993/users/uaa-id-151" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1MiIsImVtYWlsIjoiZW1haWwtMTEyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDR9.qBK7HfCHaENLJtqZEsabbg-tXlvnM1FqtoymXIIawZ0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "10be3546-323c-453b-96b1-a6affb25a993",
    "url": "/v2/organizations/10be3546-323c-453b-96b1-a6affb25a993",
    "created_at": "2015-03-05T19:15:44Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-482",
    "billing_enabled": false,
    "quota_definition_guid": "cba6e18a-54a0-41a6-9ce8-d7277c8a6058",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/cba6e18a-54a0-41a6-9ce8-d7277c8a6058",
    "spaces_url": "/v2/organizations/10be3546-323c-453b-96b1-a6affb25a993/spaces",
    "domains_url": "/v2/organizations/10be3546-323c-453b-96b1-a6affb25a993/domains",
    "private_domains_url": "/v2/organizations/10be3546-323c-453b-96b1-a6affb25a993/private_domains",
    "users_url": "/v2/organizations/10be3546-323c-453b-96b1-a6affb25a993/users",
    "managers_url": "/v2/organizations/10be3546-323c-453b-96b1-a6affb25a993/managers",
    "billing_managers_url": "/v2/organizations/10be3546-323c-453b-96b1-a6affb25a993/billing_managers",
    "auditors_url": "/v2/organizations/10be3546-323c-453b-96b1-a6affb25a993/auditors",
    "app_events_url": "/v2/organizations/10be3546-323c-453b-96b1-a6affb25a993/app_events",
    "space_quota_definitions_url": "/v2/organizations/10be3546-323c-453b-96b1-a6affb25a993/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7ad1d3e7-3b9c-4fe1-b209-9aec2870b3c6
Content-Length: 1299
X-Content-Type-Options: nosniff