Home
Version 3
Users API

Users API

Associate Audited Space with the User

PUT /v2/users/:guid/audited_spaces/:audited_space_guid

Request

Route

PUT /v2/users/uaa-id-176/audited_spaces/20bff81e-9b2e-4425-aa38-6801d73df09f

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NyIsImVtYWlsIjoiZW1haWwtMTQ0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTN9.UAY4UvENt0KT4-jxLs45MGSrCxOp2FcL6ZDShIf-z3s
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-176/audited_spaces/20bff81e-9b2e-4425-aa38-6801d73df09f" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NyIsImVtYWlsIjoiZW1haWwtMTQ0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTN9.UAY4UvENt0KT4-jxLs45MGSrCxOp2FcL6ZDShIf-z3s" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-176",
    "url": "/v2/users/uaa-id-176",
    "created_at": "2015-06-16T23:40:52Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "30a22c3b-1259-4bcb-914a-99b9caf541d0",
    "default_space_url": "/v2/spaces/30a22c3b-1259-4bcb-914a-99b9caf541d0",
    "spaces_url": "/v2/users/uaa-id-176/spaces",
    "organizations_url": "/v2/users/uaa-id-176/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-176/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-176/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-176/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-176/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-176/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d9d907a9-68d1-456e-97aa-2d2008aabc62
Content-Length: 845
X-Content-Type-Options: nosniff