Home
Version 3
Users API

Users API

Remove Audited Organization from the User

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

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
guid The guid of the User

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk0IiwiZW1haWwiOiJlbWFpbC02NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MTM3MzY1fQ.1TGvtCDk5rU7r375jbzhm4hR2qZo9cBVG_ttWDQjD5Y
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/users/uaa-id-93/audited_organizations/5ab8c053-fde3-46ce-b22a-87a11add5839

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-93/audited_organizations/5ab8c053-fde3-46ce-b22a-87a11add5839" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk0IiwiZW1haWwiOiJlbWFpbC02NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0MTM3MzY1fQ.1TGvtCDk5rU7r375jbzhm4hR2qZo9cBVG_ttWDQjD5Y" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: badf014d-382c-457b-ae54-8bb27cadb237
Content-Length: 836
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-93",
    "url": "/v2/users/uaa-id-93",
    "created_at": "2015-02-10T01:42:45Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "006b3003-de98-44d0-93d2-290e12edf49d",
    "default_space_url": "/v2/spaces/006b3003-de98-44d0-93d2-290e12edf49d",
    "spaces_url": "/v2/users/uaa-id-93/spaces",
    "organizations_url": "/v2/users/uaa-id-93/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-93/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-93/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-93/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-93/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-93/audited_spaces"
  }
}