Home
Version 3
Users API

Users API

Associate Managed Organization with the User

PUT /v2/users/:guid/managed_organizations/:managed_organization_guid

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

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

Route

PUT /v2/users/uaa-id-29/managed_organizations/2328fa7d-3e3d-4f7d-a428-4a888d844f68

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-29/managed_organizations/2328fa7d-3e3d-4f7d-a428-4a888d844f68" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxIiwiZW1haWwiOiJlbWFpbC0xNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyMzIzNTI5fQ.Hw5Hk0UTACrgYUQ0RNngmgvgmAtDPimpmvBaFpvYmsA" \
	-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: b64087c0-8e66-4fe8-9c58-bd31a08ac5fc
Content-Length: 841
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-29",
    "url": "/v2/users/uaa-id-29",
    "created_at": "2015-01-20T01:52:08+00:00",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "aa96177f-f0af-4927-a1b9-2deaa80a4359",
    "default_space_url": "/v2/spaces/aa96177f-f0af-4927-a1b9-2deaa80a4359",
    "spaces_url": "/v2/users/uaa-id-29/spaces",
    "organizations_url": "/v2/users/uaa-id-29/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-29/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-29/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-29/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-29/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-29/audited_spaces"
  }
}