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-13/audited_spaces/b3faa48e-a642-4da2-8522-bc2ebfcf87e0

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-13/audited_spaces/b3faa48e-a642-4da2-8522-bc2ebfcf87e0" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0IiwiZW1haWwiOiJlbWFpbC03QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxMzJ9.DZvx91etZ7ymnNIOZqLzvox0VzaNKKlAYb4eraRAtis" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-13",
    "url": "/v2/users/uaa-id-13",
    "created_at": "2015-04-15T00:55:32Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "747f4f9f-35a9-4872-a630-068862ac2f61",
    "default_space_url": "/v2/spaces/747f4f9f-35a9-4872-a630-068862ac2f61",
    "spaces_url": "/v2/users/uaa-id-13/spaces",
    "organizations_url": "/v2/users/uaa-id-13/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-13/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-13/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-13/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-13/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-13/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: eb1605e7-23d4-4861-9204-455800ff1c01
Content-Length: 836
X-Content-Type-Options: nosniff