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-46/audited_spaces/b69387b8-f614-4d7d-8388-2935142cfbab

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.eyJ1c2VyX2lkIjoidWFhLWlkLTQ3IiwiZW1haWwiOiJlbWFpbC0yM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM2ODI5Nzc1fQ.tD_jALB0pu2h-7BSbZJNfZYH1-YgFS1uH282e1Z6myo
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-46/audited_spaces/b69387b8-f614-4d7d-8388-2935142cfbab" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ3IiwiZW1haWwiOiJlbWFpbC0yM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM2ODI5Nzc1fQ.tD_jALB0pu2h-7BSbZJNfZYH1-YgFS1uH282e1Z6myo" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-46",
    "url": "/v2/users/uaa-id-46",
    "created_at": "2015-07-06T23:22:55Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "ed6d2534-7693-4fd6-af64-e1a7fad846f2",
    "default_space_url": "/v2/spaces/ed6d2534-7693-4fd6-af64-e1a7fad846f2",
    "spaces_url": "/v2/users/uaa-id-46/spaces",
    "organizations_url": "/v2/users/uaa-id-46/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-46/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-46/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-46/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-46/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-46/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b95e03ce-609b-41ef-a25b-cdc8c9c8c76d
Content-Length: 836
X-Content-Type-Options: nosniff