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

Route

DELETE /v2/users/uaa-id-331/audited_spaces/531d0d21-472f-418f-9f8a-93812c1bfa90

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-331/audited_spaces/531d0d21-472f-418f-9f8a-93812c1bfa90" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzMiIsImVtYWlsIjoiZW1haWwtMjQwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5Nzh9.7rAX5DE6AbBYq2tjaqsjgykLC8zDHR56_Ij7H7DVHno" \
	-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: 0186b1ab-73aa-4677-8b9c-6af060977d35
Content-Length: 850
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-331",
    "url": "/v2/users/uaa-id-331",
    "created_at": "2014-12-24T01:39:38+00:00",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "8f1b9b8c-edd9-4a28-87a0-247f7cec0f22",
    "default_space_url": "/v2/spaces/8f1b9b8c-edd9-4a28-87a0-247f7cec0f22",
    "spaces_url": "/v2/users/uaa-id-331/spaces",
    "organizations_url": "/v2/users/uaa-id-331/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-331/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-331/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-331/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-331/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-331/audited_spaces"
  }
}