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-342/audited_spaces/480c9b7f-4014-4932-8607-4f18bd6ab886

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-342/audited_spaces/480c9b7f-4014-4932-8607-4f18bd6ab886" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0MyIsImVtYWlsIjoiZW1haWwtMjY3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTl9.gjgbP6EkAbT0VRgbdcahVQt58T7F8oFMCunkLULwSsI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-342",
    "url": "/v2/users/uaa-id-342",
    "created_at": "2015-05-21T01:03:19Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "57a8c4e2-0e54-430a-86f3-79224003433e",
    "default_space_url": "/v2/spaces/57a8c4e2-0e54-430a-86f3-79224003433e",
    "spaces_url": "/v2/users/uaa-id-342/spaces",
    "organizations_url": "/v2/users/uaa-id-342/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-342/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-342/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-342/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-342/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-342/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 95337652-79dd-4efe-aa7c-8c778ae96850
Content-Length: 845
X-Content-Type-Options: nosniff