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-346/audited_spaces/3f648234-0862-4ce2-9444-40b7e0054015

Parameters

Name Description Valid Values Example Values
guid The guid of the User

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0NyIsImVtYWlsIjoiZW1haWwtMjY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTl9.iSvl8PJW-PtPhHKxg0IgKl4DYFexbwjiy44Paqz3cn0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-346/audited_spaces/3f648234-0862-4ce2-9444-40b7e0054015" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0NyIsImVtYWlsIjoiZW1haWwtMjY5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTl9.iSvl8PJW-PtPhHKxg0IgKl4DYFexbwjiy44Paqz3cn0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-346",
    "url": "/v2/users/uaa-id-346",
    "created_at": "2015-05-21T01:03:19Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "d46c4d3b-9721-4217-9ac2-052e0d4759f1",
    "default_space_url": "/v2/spaces/d46c4d3b-9721-4217-9ac2-052e0d4759f1",
    "spaces_url": "/v2/users/uaa-id-346/spaces",
    "organizations_url": "/v2/users/uaa-id-346/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-346/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-346/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-346/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-346/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-346/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8e93a9b2-eeb2-4816-850c-be6e43c49ddb
Content-Length: 845
X-Content-Type-Options: nosniff