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-288/audited_spaces/39e8d39d-6d43-490a-8023-524b00dc3d3b

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-288/audited_spaces/39e8d39d-6d43-490a-8023-524b00dc3d3b" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4OSIsImVtYWlsIjoiZW1haWwtMTk3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NzF9.PyDMG9ahGOGvealczOvbBy_E7XwjGml95UQULO0LoyA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-288",
    "url": "/v2/users/uaa-id-288",
    "created_at": "2015-03-03T00:51:11Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "27be59fb-2467-4a17-8293-c5de9054d94b",
    "default_space_url": "/v2/spaces/27be59fb-2467-4a17-8293-c5de9054d94b",
    "spaces_url": "/v2/users/uaa-id-288/spaces",
    "organizations_url": "/v2/users/uaa-id-288/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-288/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-288/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-288/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-288/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-288/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3c47c704-04f5-43d6-8bc9-40d1b4f05f5e
Content-Length: 845
X-Content-Type-Options: nosniff