Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Request

Route

PUT /v2/organizations/2dc637e7-58d8-4c5a-825b-a160ff18cb76/users/uaa-id-80

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgxIiwiZW1haWwiOiJlbWFpbC00NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQxNjYyNTk3fQ.9X23U9xVZeU47vcPceRNIwUGtnv-tRhz1wD0cjn7OO4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/2dc637e7-58d8-4c5a-825b-a160ff18cb76/users/uaa-id-80" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgxIiwiZW1haWwiOiJlbWFpbC00NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQxNjYyNTk3fQ.9X23U9xVZeU47vcPceRNIwUGtnv-tRhz1wD0cjn7OO4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "2dc637e7-58d8-4c5a-825b-a160ff18cb76",
    "url": "/v2/organizations/2dc637e7-58d8-4c5a-825b-a160ff18cb76",
    "created_at": "2015-08-31T21:49:57Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-284",
    "billing_enabled": false,
    "quota_definition_guid": "591f0c8b-536c-427f-8ab6-650bd062472d",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/591f0c8b-536c-427f-8ab6-650bd062472d",
    "spaces_url": "/v2/organizations/2dc637e7-58d8-4c5a-825b-a160ff18cb76/spaces",
    "domains_url": "/v2/organizations/2dc637e7-58d8-4c5a-825b-a160ff18cb76/domains",
    "private_domains_url": "/v2/organizations/2dc637e7-58d8-4c5a-825b-a160ff18cb76/private_domains",
    "users_url": "/v2/organizations/2dc637e7-58d8-4c5a-825b-a160ff18cb76/users",
    "managers_url": "/v2/organizations/2dc637e7-58d8-4c5a-825b-a160ff18cb76/managers",
    "billing_managers_url": "/v2/organizations/2dc637e7-58d8-4c5a-825b-a160ff18cb76/billing_managers",
    "auditors_url": "/v2/organizations/2dc637e7-58d8-4c5a-825b-a160ff18cb76/auditors",
    "app_events_url": "/v2/organizations/2dc637e7-58d8-4c5a-825b-a160ff18cb76/app_events",
    "space_quota_definitions_url": "/v2/organizations/2dc637e7-58d8-4c5a-825b-a160ff18cb76/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b6a15f5f-f1c7-44b8-a421-55805579cae7
Content-Length: 1299
X-Content-Type-Options: nosniff