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-206/audited_spaces/d0506a61-4625-483a-bf15-0793068860ad

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-206/audited_spaces/d0506a61-4625-483a-bf15-0793068860ad" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwNyIsImVtYWlsIjoiZW1haWwtMTQzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE3OTh9.Yu1KstUmI3wUWaFmijZtHDN7CzdgyDsDqgTJHLYhNsU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-206",
    "url": "/v2/users/uaa-id-206",
    "created_at": "2015-07-27T22:43:18Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "910bce5a-227a-4a1f-8902-e640e7483578",
    "default_space_url": "/v2/spaces/910bce5a-227a-4a1f-8902-e640e7483578",
    "spaces_url": "/v2/users/uaa-id-206/spaces",
    "organizations_url": "/v2/users/uaa-id-206/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-206/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-206/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-206/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-206/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-206/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0f1464e6-54c4-4faa-8d57-ed073b7b06da
Content-Length: 845
X-Content-Type-Options: nosniff