Home
Version 3
Users API

Users API

Associate Audited Space with the User

PUT /v2/users/:guid/audited_spaces/:audited_space_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.eyJ1c2VyX2lkIjoidWFhLWlkLTE2IiwiZW1haWwiOiJlbWFpbC04QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1Mjh9.5DUBGFR7WqTTDGsxOByPbVobyxodP94cN-CUy6-pQwI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/users/uaa-id-15/audited_spaces/eb923818-2bcf-4324-bfbb-bc9032a17236

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-15/audited_spaces/eb923818-2bcf-4324-bfbb-bc9032a17236" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2IiwiZW1haWwiOiJlbWFpbC04QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1Mjh9.5DUBGFR7WqTTDGsxOByPbVobyxodP94cN-CUy6-pQwI" \
	-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: 786239c2-af5e-4d5d-93d2-af4ecb1f19c4
Content-Length: 841
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-15",
    "url": "/v2/users/uaa-id-15",
    "created_at": "2015-01-20T01:52:08+00:00",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "34c3bf97-bffa-4420-9e7c-3c47f52d2a86",
    "default_space_url": "/v2/spaces/34c3bf97-bffa-4420-9e7c-3c47f52d2a86",
    "spaces_url": "/v2/users/uaa-id-15/spaces",
    "organizations_url": "/v2/users/uaa-id-15/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-15/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-15/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-15/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-15/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-15/audited_spaces"
  }
}