Home
Version 3
Organizations API

Organizations API

Associate User with the Organization

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

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

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

Route

PUT /v2/organizations/2f26daff-c21f-4edf-bd85-aad6db2f3bf1/users/uaa-id-20

cURL

curl "https://api.[your-domain.com]/v2/organizations/2f26daff-c21f-4edf-bd85-aad6db2f3bf1/users/uaa-id-20" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxIiwiZW1haWwiOiJlbWFpbC0xN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0NDcxNjg1fQ.imPiP0LqWpeFbk1vDzWGgCsIGtsFM9SSb7dF2Tfy2vE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ded34693-409e-401a-b6e9-bc46aeeae016
Content-Length: 1298
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "2f26daff-c21f-4edf-bd85-aad6db2f3bf1",
    "url": "/v2/organizations/2f26daff-c21f-4edf-bd85-aad6db2f3bf1",
    "created_at": "2015-02-13T22:34:45Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-45",
    "billing_enabled": false,
    "quota_definition_guid": "dd5f9eb2-1ebc-4b5e-a4bf-d3bdbdf4ec58",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/dd5f9eb2-1ebc-4b5e-a4bf-d3bdbdf4ec58",
    "spaces_url": "/v2/organizations/2f26daff-c21f-4edf-bd85-aad6db2f3bf1/spaces",
    "domains_url": "/v2/organizations/2f26daff-c21f-4edf-bd85-aad6db2f3bf1/domains",
    "private_domains_url": "/v2/organizations/2f26daff-c21f-4edf-bd85-aad6db2f3bf1/private_domains",
    "users_url": "/v2/organizations/2f26daff-c21f-4edf-bd85-aad6db2f3bf1/users",
    "managers_url": "/v2/organizations/2f26daff-c21f-4edf-bd85-aad6db2f3bf1/managers",
    "billing_managers_url": "/v2/organizations/2f26daff-c21f-4edf-bd85-aad6db2f3bf1/billing_managers",
    "auditors_url": "/v2/organizations/2f26daff-c21f-4edf-bd85-aad6db2f3bf1/auditors",
    "app_events_url": "/v2/organizations/2f26daff-c21f-4edf-bd85-aad6db2f3bf1/app_events",
    "space_quota_definitions_url": "/v2/organizations/2f26daff-c21f-4edf-bd85-aad6db2f3bf1/space_quota_definitions"
  }
}