Home
Version 3
Users API

Users API

Associate Audited Organization with the User

PUT /v2/users/:guid/audited_organizations/:audited_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.eyJ1c2VyX2lkIjoidWFhLWlkLTk4IiwiZW1haWwiOiJlbWFpbC02OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MTM3MzY1fQ.KChujv3Z1qqTFm3buuHVnfgJNwlo1FuDOu-AqShivOk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/users/uaa-id-97/audited_organizations/f3eb17d9-4229-4246-a129-019c9eefd977

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-97/audited_organizations/f3eb17d9-4229-4246-a129-019c9eefd977" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk4IiwiZW1haWwiOiJlbWFpbC02OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MTM3MzY1fQ.KChujv3Z1qqTFm3buuHVnfgJNwlo1FuDOu-AqShivOk" \
	-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: 3c2ebcfa-8cac-42b9-a1dc-9d7d6adb7503
Content-Length: 836
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-97",
    "url": "/v2/users/uaa-id-97",
    "created_at": "2015-02-10T01:42:45Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "1ffb98a6-fecd-42e8-8b9c-521f624d8314",
    "default_space_url": "/v2/spaces/1ffb98a6-fecd-42e8-8b9c-521f624d8314",
    "spaces_url": "/v2/users/uaa-id-97/spaces",
    "organizations_url": "/v2/users/uaa-id-97/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-97/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-97/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-97/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-97/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-97/audited_spaces"
  }
}