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-420/audited_spaces/5e1949a4-df65-410c-84fa-43d1460d8d47

Parameters

Name Description Valid Values Example Values
guid The guid of the User
audited_space_guid The guid of the audited space

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyMSIsImVtYWlsIjoiZW1haWwtMjkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NTB9.k3QM-sM8zdCE3_4EyVROWlMNT3vrZUGuco8Y6fn5eng
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-420/audited_spaces/5e1949a4-df65-410c-84fa-43d1460d8d47" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyMSIsImVtYWlsIjoiZW1haWwtMjkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1NTB9.k3QM-sM8zdCE3_4EyVROWlMNT3vrZUGuco8Y6fn5eng" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-420",
    "url": "/v2/users/uaa-id-420",
    "created_at": "2015-09-11T18:39:10Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "c61e647e-9573-46da-938c-c2113cd6f574",
    "default_space_url": "/v2/spaces/c61e647e-9573-46da-938c-c2113cd6f574",
    "spaces_url": "/v2/users/uaa-id-420/spaces",
    "organizations_url": "/v2/users/uaa-id-420/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-420/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-420/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-420/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-420/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-420/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 04fa3a30-2c1a-475c-b1ff-acc45f23263b
Content-Length: 845
X-Content-Type-Options: nosniff