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

Route

DELETE /v2/users/uaa-id-40/audited_organizations/d1c0eb9e-e172-4a64-ba54-bdf11fb6d13a

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-40/audited_organizations/d1c0eb9e-e172-4a64-ba54-bdf11fb6d13a" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxIiwiZW1haWwiOiJlbWFpbC0xOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyMzIzNTI5fQ.DXSaL8WStjnVOQ_AG27CNRLCsgPm4NSqfB9NojIJOtI" \
	-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: 15b1991e-c8d8-4cd2-af1c-029edf973cfe
Content-Length: 841
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-40",
    "url": "/v2/users/uaa-id-40",
    "created_at": "2015-01-20T01:52:09+00:00",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "a38965e5-6220-4fb4-87a8-e43840dca12b",
    "default_space_url": "/v2/spaces/a38965e5-6220-4fb4-87a8-e43840dca12b",
    "spaces_url": "/v2/users/uaa-id-40/spaces",
    "organizations_url": "/v2/users/uaa-id-40/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-40/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-40/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-40/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-40/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-40/audited_spaces"
  }
}