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-214/audited_organizations/a16e5b96-e5b9-4878-a1cd-cb56ebfb2007

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-214/audited_organizations/a16e5b96-e5b9-4878-a1cd-cb56ebfb2007" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxNSIsImVtYWlsIjoiZW1haWwtMTQ3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE3OTh9.lKCKj57fvbTC0_QZoYfbZET5EGth5Z3ntdpaUAHSARY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-214",
    "url": "/v2/users/uaa-id-214",
    "created_at": "2015-07-27T22:43:18Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "0d12bcab-385f-43ea-94b5-7bc2925a25dc",
    "default_space_url": "/v2/spaces/0d12bcab-385f-43ea-94b5-7bc2925a25dc",
    "spaces_url": "/v2/users/uaa-id-214/spaces",
    "organizations_url": "/v2/users/uaa-id-214/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-214/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-214/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-214/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-214/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-214/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6d1fa465-0942-4e1a-9989-534fdc54a0b6
Content-Length: 845
X-Content-Type-Options: nosniff