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-35/audited_spaces/783efeef-c376-4272-acc3-69c10509a7a1

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-35/audited_spaces/783efeef-c376-4272-acc3-69c10509a7a1" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2IiwiZW1haWwiOiJlbWFpbC0xOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMzOTgxMDk3fQ.vfR1YYQBefwFt3sATuDcO8gWhY7nGOzk7PeLiq61ZEw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-35",
    "url": "/v2/users/uaa-id-35",
    "created_at": "2015-06-04T00:04:57Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "54842ff7-9d76-40b5-9e0c-481c803db4ad",
    "default_space_url": "/v2/spaces/54842ff7-9d76-40b5-9e0c-481c803db4ad",
    "spaces_url": "/v2/users/uaa-id-35/spaces",
    "organizations_url": "/v2/users/uaa-id-35/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-35/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-35/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-35/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-35/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-35/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 202dc3ac-0da9-4c7f-b279-2b824e26ee03
Content-Length: 836
X-Content-Type-Options: nosniff