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-29/audited_organizations/c8c417e5-eecd-44e9-923d-db4d1bbb8d5c

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-29/audited_organizations/c8c417e5-eecd-44e9-923d-db4d1bbb8d5c" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwIiwiZW1haWwiOiJlbWFpbC0xNUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMzOTgxMDk3fQ.XNVHqJxrS03BV3xDDl3k14IQhcvRoXr0pkagpS7T-fQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-29",
    "url": "/v2/users/uaa-id-29",
    "created_at": "2015-06-04T00:04:56Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "2c2a0170-6cf2-4835-b4a5-5d52089dcd17",
    "default_space_url": "/v2/spaces/2c2a0170-6cf2-4835-b4a5-5d52089dcd17",
    "spaces_url": "/v2/users/uaa-id-29/spaces",
    "organizations_url": "/v2/users/uaa-id-29/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-29/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-29/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-29/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-29/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-29/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e2019bb5-cb22-4f1f-a551-07d8455bd5ce
Content-Length: 836
X-Content-Type-Options: nosniff