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

Route

DELETE /v2/users/uaa-id-131/audited_spaces/b45e8ae3-86de-4f17-8392-2de000df4ad7

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-131/audited_spaces/b45e8ae3-86de-4f17-8392-2de000df4ad7" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMiIsImVtYWlsIjoiZW1haWwtMTAzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDN9.BITJr75gWUIj7AJOwpyCz0m7CySK63U0rt_KPUJ61qU" \
	-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: ff8f837f-6f54-4ccb-8982-631f18445bc4
Content-Length: 850
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-131",
    "url": "/v2/users/uaa-id-131",
    "created_at": "2014-11-13T23:38:23+00:00",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "7571443f-baf7-4df8-a894-3671026d4f53",
    "default_space_url": "/v2/spaces/7571443f-baf7-4df8-a894-3671026d4f53",
    "spaces_url": "/v2/users/uaa-id-131/spaces",
    "organizations_url": "/v2/users/uaa-id-131/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-131/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-131/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-131/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-131/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-131/audited_spaces"
  }
}