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

Route

DELETE /v2/users/uaa-id-245/audited_spaces/02229eb3-5291-4514-b7ea-8af92bf07f34

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-245/audited_spaces/02229eb3-5291-4514-b7ea-8af92bf07f34" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NiIsImVtYWlsIjoiZW1haWwtMTk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjV9.RSRAIcQqtZHjS34QkLeuiRpM2I1ujsAGoVaPpAlWM3E" \
	-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: 5127df17-b3f6-4f21-b535-4989ed4b733e
Content-Length: 850
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-245",
    "url": "/v2/users/uaa-id-245",
    "created_at": "2014-11-24T19:32:45+00:00",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "36293a92-9642-4181-9b73-c6ede7c1c0b0",
    "default_space_url": "/v2/spaces/36293a92-9642-4181-9b73-c6ede7c1c0b0",
    "spaces_url": "/v2/users/uaa-id-245/spaces",
    "organizations_url": "/v2/users/uaa-id-245/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-245/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-245/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-245/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-245/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-245/audited_spaces"
  }
}