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-146/audited_spaces/e533290f-8fb1-4030-a696-776c9cc6b1d6

Parameters

Name Description Valid Values Example Values
guid The guid of the User
audited_space_guid The guid of the audited space

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NyIsImVtYWlsIjoiZW1haWwtMTA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYxOTh9.VUOT9bF8XaXGvz7JflusPJxv6tvkmmcWO1Se2Sh5GwQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-146/audited_spaces/e533290f-8fb1-4030-a696-776c9cc6b1d6" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NyIsImVtYWlsIjoiZW1haWwtMTA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYxOTh9.VUOT9bF8XaXGvz7JflusPJxv6tvkmmcWO1Se2Sh5GwQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-146",
    "url": "/v2/users/uaa-id-146",
    "created_at": "2015-08-06T00:36:38Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "0dd86dda-7ae6-446d-b53b-dc6c51a484c1",
    "default_space_url": "/v2/spaces/0dd86dda-7ae6-446d-b53b-dc6c51a484c1",
    "spaces_url": "/v2/users/uaa-id-146/spaces",
    "organizations_url": "/v2/users/uaa-id-146/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-146/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-146/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-146/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-146/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-146/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 59176cf7-ed97-45e8-90c8-cf73fbea2b19
Content-Length: 845
X-Content-Type-Options: nosniff