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

Route

PUT /v2/users/uaa-id-42/audited_organizations/a29ec5f2-2c84-4764-8135-596242f66bfc

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-42/audited_organizations/a29ec5f2-2c84-4764-8135-596242f66bfc" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzIiwiZW1haWwiOiJlbWFpbC0yMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyMzIzNTI5fQ.1VuYncH51S7GhJPNrHGsVSTlH7YOJ7KAQ2iUyHkM6CY" \
	-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: 702caf66-22c5-4b70-aad8-5a36f81f2aaa
Content-Length: 841
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-42",
    "url": "/v2/users/uaa-id-42",
    "created_at": "2015-01-20T01:52:09+00:00",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "5373e35b-09d2-422c-ba8f-3f3b34ef7679",
    "default_space_url": "/v2/spaces/5373e35b-09d2-422c-ba8f-3f3b34ef7679",
    "spaces_url": "/v2/users/uaa-id-42/spaces",
    "organizations_url": "/v2/users/uaa-id-42/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-42/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-42/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-42/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-42/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-42/audited_spaces"
  }
}