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-174/audited_spaces/dd3d14fa-34d3-4d11-889e-667dabe875a8

Parameters

Name Description Valid Values Example Values
guid The guid of the User

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NSIsImVtYWlsIjoiZW1haWwtMTQzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTJ9.D_9H4W4VqwroCwtT0sqVZzkOmFLo132L4WfMoix-VYk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-174/audited_spaces/dd3d14fa-34d3-4d11-889e-667dabe875a8" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NSIsImVtYWlsIjoiZW1haWwtMTQzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTJ9.D_9H4W4VqwroCwtT0sqVZzkOmFLo132L4WfMoix-VYk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-174",
    "url": "/v2/users/uaa-id-174",
    "created_at": "2015-06-16T23:40:52Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "f1d90f11-43b9-4e00-9416-8a586af9bf46",
    "default_space_url": "/v2/spaces/f1d90f11-43b9-4e00-9416-8a586af9bf46",
    "spaces_url": "/v2/users/uaa-id-174/spaces",
    "organizations_url": "/v2/users/uaa-id-174/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-174/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-174/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-174/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-174/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-174/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b822c9c2-09ff-4ff1-8031-27335f14c654
Content-Length: 845
X-Content-Type-Options: nosniff