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-341/audited_spaces/e200f064-b352-493b-a447-ff543f1d7bf8

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.eyJ1c2VyX2lkIjoidWFhLWlkLTM0MiIsImVtYWlsIjoiZW1haWwtMjQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTZ9.VlIPChIi2RCrhINF-0JLn8y2wX1VWl5Y-ALa986gfhM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-341/audited_spaces/e200f064-b352-493b-a447-ff543f1d7bf8" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0MiIsImVtYWlsIjoiZW1haWwtMjQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTZ9.VlIPChIi2RCrhINF-0JLn8y2wX1VWl5Y-ALa986gfhM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-341",
    "url": "/v2/users/uaa-id-341",
    "created_at": "2015-10-13T17:31:56Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "3f1d0e32-1db1-4de3-b1c4-47806719fb8f",
    "default_space_url": "/v2/spaces/3f1d0e32-1db1-4de3-b1c4-47806719fb8f",
    "spaces_url": "/v2/users/uaa-id-341/spaces",
    "organizations_url": "/v2/users/uaa-id-341/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-341/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-341/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-341/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-341/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-341/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 51f7b2e4-eeb7-4c7e-8215-dfeec73dbccd
Content-Length: 845
X-Content-Type-Options: nosniff