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-156/audited_spaces/570c4c47-3f3e-43c3-9cbe-4f494225df42

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-156/audited_spaces/570c4c47-3f3e-43c3-9cbe-4f494225df42" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NyIsImVtYWlsIjoiZW1haWwtMTA4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MDR9.yPPuNWjzxSDRhmjSjOUYlF3__TAoGBDORbSqGiMBakM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-156",
    "url": "/v2/users/uaa-id-156",
    "created_at": "2015-04-07T19:11:44Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "0a3c46f8-a661-44b0-a5a5-10825c1ba3e2",
    "default_space_url": "/v2/spaces/0a3c46f8-a661-44b0-a5a5-10825c1ba3e2",
    "spaces_url": "/v2/users/uaa-id-156/spaces",
    "organizations_url": "/v2/users/uaa-id-156/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-156/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-156/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-156/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-156/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-156/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 44660b99-24fc-4b4f-8697-f1275eac3433
Content-Length: 845
X-Content-Type-Options: nosniff