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-334/audited_spaces/7d46adf9-f36b-49ed-8f54-f47c6ceccdb4

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-334/audited_spaces/7d46adf9-f36b-49ed-8f54-f47c6ceccdb4" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNSIsImVtYWlsIjoiZW1haWwtMjE2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTJ9.OaUYmJrvrTfgCPo1MB1XS2otTYz_6URRR5PNVuINfPE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-334",
    "url": "/v2/users/uaa-id-334",
    "created_at": "2015-09-30T23:30:52Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "b547f9a3-30f9-4d1b-8e61-5a2b4727b5f1",
    "default_space_url": "/v2/spaces/b547f9a3-30f9-4d1b-8e61-5a2b4727b5f1",
    "spaces_url": "/v2/users/uaa-id-334/spaces",
    "organizations_url": "/v2/users/uaa-id-334/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-334/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-334/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-334/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-334/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-334/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: fa9e3926-5767-4cfa-b16a-65914c861416
Content-Length: 845
X-Content-Type-Options: nosniff