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-51/audited_spaces/d0408cf2-3a21-4324-8e3b-e668adb30f2a

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-51/audited_spaces/d0408cf2-3a21-4324-8e3b-e668adb30f2a" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUyIiwiZW1haWwiOiJlbWFpbC00NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2MTg3NzM5fQ.Yi3Z2SHJ0D0Y-R2t0bYw_SdXNnYml3e3YVcexlVesj0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-51",
    "url": "/v2/users/uaa-id-51",
    "created_at": "2015-03-05T19:15:39Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "c6e318f1-9d18-40bb-bcfd-60e64eeccac9",
    "default_space_url": "/v2/spaces/c6e318f1-9d18-40bb-bcfd-60e64eeccac9",
    "spaces_url": "/v2/users/uaa-id-51/spaces",
    "organizations_url": "/v2/users/uaa-id-51/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-51/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-51/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-51/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-51/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-51/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 137a8124-62cd-419e-8006-c47e1a91b24b
Content-Length: 836
X-Content-Type-Options: nosniff