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.eyJ1c2VyX2lkIjoidWFhLWlkLTYwIiwiZW1haWwiOiJlbWFpbC00NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTMyfQ.nHsU7IJTsu_-R0qYaa-USBGI3Squ2epp3R8X20NbuR4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/users/uaa-id-59/audited_organizations/52df7654-10eb-4d7d-8c69-7f25331437cd

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-59/audited_organizations/52df7654-10eb-4d7d-8c69-7f25331437cd" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYwIiwiZW1haWwiOiJlbWFpbC00NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTMyfQ.nHsU7IJTsu_-R0qYaa-USBGI3Squ2epp3R8X20NbuR4" \
	-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: e9b91db7-5b85-4dd7-8934-1789e792983a
Content-Length: 841
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-59",
    "url": "/v2/users/uaa-id-59",
    "created_at": "2014-11-05T01:02:12+00:00",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "01bf78b7-847a-45a2-ba3c-6579b5112d20",
    "default_space_url": "/v2/spaces/01bf78b7-847a-45a2-ba3c-6579b5112d20",
    "spaces_url": "/v2/users/uaa-id-59/spaces",
    "organizations_url": "/v2/users/uaa-id-59/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-59/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-59/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-59/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-59/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-59/audited_spaces"
  }
}