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

Route

PUT /v2/users/uaa-id-63/audited_organizations/0e8cfda5-71ad-42b2-8f53-e39c1fccddb1

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-63/audited_organizations/0e8cfda5-71ad-42b2-8f53-e39c1fccddb1" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY0IiwiZW1haWwiOiJlbWFpbC00N0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTMyfQ.SfYV0fsiuLT91uqpLfUkxhmFqPxMuWJWb4TIpnN_Izg" \
	-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: ebaa99fa-c63f-42a7-999f-6ed5c22fdd9b
Content-Length: 841
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-63",
    "url": "/v2/users/uaa-id-63",
    "created_at": "2014-11-05T01:02:12+00:00",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "7b50e1fa-42d3-4812-90af-fb27bc0ad81d",
    "default_space_url": "/v2/spaces/7b50e1fa-42d3-4812-90af-fb27bc0ad81d",
    "spaces_url": "/v2/users/uaa-id-63/spaces",
    "organizations_url": "/v2/users/uaa-id-63/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-63/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-63/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-63/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-63/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-63/audited_spaces"
  }
}