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

Route

PUT /v2/users/uaa-id-286/audited_spaces/d27da0c8-1880-449b-a978-a6db0dcc6d3f

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-286/audited_spaces/d27da0c8-1880-449b-a978-a6db0dcc6d3f" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NyIsImVtYWlsIjoiZW1haWwtMTk5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDF9.NVyKuICoF8NUYWS5pHGqmnRfYx6bIK2bR3k07EVGGv0" \
	-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: da61ec1a-7fbb-4518-a381-545b45e57bc1
Content-Length: 845
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-286",
    "url": "/v2/users/uaa-id-286",
    "created_at": "2015-02-13T22:35:01Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "1fc2ceda-1e3d-4628-9a0a-6216d9b5f8c0",
    "default_space_url": "/v2/spaces/1fc2ceda-1e3d-4628-9a0a-6216d9b5f8c0",
    "spaces_url": "/v2/users/uaa-id-286/spaces",
    "organizations_url": "/v2/users/uaa-id-286/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-286/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-286/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-286/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-286/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-286/audited_spaces"
  }
}