Home
Version 3
Users API

Users API

Remove Audited Space from the User

DELETE /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.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NSIsImVtYWlsIjoiZW1haWwtMTk4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDF9.3tfyaGbGrtXNEDxN9GW2hMS-4vFGJYQV7edc8vn_S7Y
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/users/uaa-id-284/audited_spaces/d5b75f64-6c7e-46a9-ad86-603b505deffe

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-284/audited_spaces/d5b75f64-6c7e-46a9-ad86-603b505deffe" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NSIsImVtYWlsIjoiZW1haWwtMTk4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDF9.3tfyaGbGrtXNEDxN9GW2hMS-4vFGJYQV7edc8vn_S7Y" \
	-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: 528fde20-9bb4-4253-b566-2ff358ed4f30
Content-Length: 845
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-284",
    "url": "/v2/users/uaa-id-284",
    "created_at": "2015-02-13T22:35:01Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "06629a53-ee43-43cf-b3f3-9188fa68e687",
    "default_space_url": "/v2/spaces/06629a53-ee43-43cf-b3f3-9188fa68e687",
    "spaces_url": "/v2/users/uaa-id-284/spaces",
    "organizations_url": "/v2/users/uaa-id-284/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-284/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-284/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-284/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-284/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-284/audited_spaces"
  }
}