Home
Version 3
Users API

Users API

Associate Audited Organization with the User

PUT /v2/users/:guid/audited_organizations/:audited_organization_guid

Request

Route

PUT /v2/users/uaa-id-330/audited_organizations/14c5b834-d439-407b-9a38-07abd7fe4e8f

Parameters

Name Description Valid Values Example Values
guid The guid of the User
audited_organization_guid The guid of the audited organization

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-330/audited_organizations/14c5b834-d439-407b-9a38-07abd7fe4e8f" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzMSIsImVtYWlsIjoiZW1haWwtMjE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTF9.K0dAo5Y5iokT_UxFBH0viIBcqqKOT6s80SAFoDUTzEM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-330",
    "url": "/v2/users/uaa-id-330",
    "created_at": "2015-09-30T23:30:51Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "992d1f0c-73b6-4df2-ab46-ecd21d2a8c51",
    "default_space_url": "/v2/spaces/992d1f0c-73b6-4df2-ab46-ecd21d2a8c51",
    "spaces_url": "/v2/users/uaa-id-330/spaces",
    "organizations_url": "/v2/users/uaa-id-330/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-330/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-330/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-330/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-330/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-330/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: fa9bd584-2e17-4927-8ed0-c7ff144df338
Content-Length: 845
X-Content-Type-Options: nosniff