Home
Version 3
Users API

Users API

Remove Audited Organization from the User

DELETE /v2/users/:guid/audited_organizations/:audited_organization_guid

Request

Route

DELETE /v2/users/uaa-id-319/audited_organizations/1c9afea9-d4b9-4113-8e5e-924d8bdd19eb

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.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMCIsImVtYWlsIjoiZW1haWwtMjU3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTh9.DXMbM5e9MmjflOP-3c6CuKjcNyzWlMDNfzqV2Ki1oXU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-319/audited_organizations/1c9afea9-d4b9-4113-8e5e-924d8bdd19eb" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMCIsImVtYWlsIjoiZW1haWwtMjU3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTh9.DXMbM5e9MmjflOP-3c6CuKjcNyzWlMDNfzqV2Ki1oXU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-319",
    "url": "/v2/users/uaa-id-319",
    "created_at": "2015-05-21T01:03:18Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "7db05833-36e5-43f2-bedd-2a923d066745",
    "default_space_url": "/v2/spaces/7db05833-36e5-43f2-bedd-2a923d066745",
    "spaces_url": "/v2/users/uaa-id-319/spaces",
    "organizations_url": "/v2/users/uaa-id-319/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-319/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-319/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-319/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-319/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-319/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: db526094-d2ac-4efc-9885-944a6d74d605
Content-Length: 845
X-Content-Type-Options: nosniff