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

Route

DELETE /v2/users/uaa-id-99/audited_spaces/ed9c38d6-492a-4791-be7e-d91a41e364ae

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-99/audited_spaces/ed9c38d6-492a-4791-be7e-d91a41e364ae" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMCIsImVtYWlsIjoiZW1haWwtNjlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDEzNzM2NX0.iZIotgcq_wRPtPohmVbeBkem3tOT1pv_nQ6BD2C7r5g" \
	-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: ec1728cd-d7ef-40ad-9d60-6a46ccf61a1c
Content-Length: 836
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-99",
    "url": "/v2/users/uaa-id-99",
    "created_at": "2015-02-10T01:42:45Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "c37f4d8c-15e4-424b-9091-5de58764f034",
    "default_space_url": "/v2/spaces/c37f4d8c-15e4-424b-9091-5de58764f034",
    "spaces_url": "/v2/users/uaa-id-99/spaces",
    "organizations_url": "/v2/users/uaa-id-99/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-99/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-99/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-99/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-99/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-99/audited_spaces"
  }
}