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-420/audited_organizations/dd88ff78-44f7-4190-a11f-7c549a72b215

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-420/audited_organizations/dd88ff78-44f7-4190-a11f-7c549a72b215" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyMSIsImVtYWlsIjoiZW1haWwtMzE2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NTh9.zgrH3a_ak4QhgoN7DCKDjuB3Be4IIFII4a1-UoGTtPA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-420",
    "url": "/v2/users/uaa-id-420",
    "created_at": "2015-11-03T00:54:18Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "cae34996-8994-42d6-83f7-fd5040159148",
    "default_space_url": "/v2/spaces/cae34996-8994-42d6-83f7-fd5040159148",
    "spaces_url": "/v2/users/uaa-id-420/spaces",
    "organizations_url": "/v2/users/uaa-id-420/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-420/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-420/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-420/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-420/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-420/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 61230ec5-07b2-41b5-8484-ead10276aa4d
Content-Length: 845
X-Content-Type-Options: nosniff