Home
Version 3
Users API

Users API

Remove Audited Space from the User

DELETE /v2/users/:guid/audited_spaces/:audited_space_guid

Request

Route

DELETE /v2/users/uaa-id-1/audited_spaces/56b13bfe-c626-4bb4-9cbe-a63fbc7bbb86

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-1/audited_spaces/56b13bfe-c626-4bb4-9cbe-a63fbc7bbb86" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIiLCJlbWFpbCI6ImVtYWlsLTFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MTY2MjU5M30.BHnc4WrPxP5sUFE4q5qB9SHxnHDzdMVpqyTCLPCUs40" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-1",
    "url": "/v2/users/uaa-id-1",
    "created_at": "2015-08-31T21:49:53Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "4c88f1a7-1db8-4502-9d40-6482cb2b4c31",
    "default_space_url": "/v2/spaces/4c88f1a7-1db8-4502-9d40-6482cb2b4c31",
    "spaces_url": "/v2/users/uaa-id-1/spaces",
    "organizations_url": "/v2/users/uaa-id-1/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-1/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-1/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-1/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-1/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-1/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d0ab5309-fa82-4f4c-95be-3b548205cb92
Content-Length: 827
X-Content-Type-Options: nosniff