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

Route

DELETE /v2/users/uaa-id-47/audited_spaces/4cb3c359-093e-4c15-9b98-cc9f4ec154c9

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-47/audited_spaces/4cb3c359-093e-4c15-9b98-cc9f4ec154c9" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ4IiwiZW1haWwiOiJlbWFpbC0zOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTMyfQ.npKLgaY1wnyT-7c8cqxv_mHgpXo4HkQ3ET6Jc62Udpw" \
	-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: 34a39113-f06f-44bd-80b9-45a794b663c1
Content-Length: 841
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-47",
    "url": "/v2/users/uaa-id-47",
    "created_at": "2014-11-05T01:02:12+00:00",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "9ffcde14-fe6a-43ca-b0d1-786477365a36",
    "default_space_url": "/v2/spaces/9ffcde14-fe6a-43ca-b0d1-786477365a36",
    "spaces_url": "/v2/users/uaa-id-47/spaces",
    "organizations_url": "/v2/users/uaa-id-47/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-47/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-47/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-47/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-47/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-47/audited_spaces"
  }
}