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-154/audited_organizations/a06a4be6-3a33-49cf-8cc5-fedcecc5ed86

Parameters

Name Description Valid Values Example Values
guid The guid of the User

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NSIsImVtYWlsIjoiZW1haWwtMTA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MDR9.4k-gZL73y1A9ksZEjc4vmsPrao_scfAZB7noKAVtAuE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-154/audited_organizations/a06a4be6-3a33-49cf-8cc5-fedcecc5ed86" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NSIsImVtYWlsIjoiZW1haWwtMTA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MDR9.4k-gZL73y1A9ksZEjc4vmsPrao_scfAZB7noKAVtAuE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-154",
    "url": "/v2/users/uaa-id-154",
    "created_at": "2015-04-07T19:11:44Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "3a0d7c52-8917-4948-9c28-af3509bf938b",
    "default_space_url": "/v2/spaces/3a0d7c52-8917-4948-9c28-af3509bf938b",
    "spaces_url": "/v2/users/uaa-id-154/spaces",
    "organizations_url": "/v2/users/uaa-id-154/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-154/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-154/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-154/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-154/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-154/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 16dc03a6-dd93-45ff-b3ae-110dd5973617
Content-Length: 845
X-Content-Type-Options: nosniff