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-335/audited_organizations/cb939b86-ffcc-4996-b699-68b6ccf8c53d

Parameters

Name Description Valid Values Example Values
guid The guid of the User
audited_organization_guid The guid of the audited organization

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNiIsImVtYWlsIjoiZW1haWwtMjQ2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTZ9.5-RJVWl8wK0h_UgzfJ49Q___mH21UhAKynhpSIfGq34
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-335/audited_organizations/cb939b86-ffcc-4996-b699-68b6ccf8c53d" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNiIsImVtYWlsIjoiZW1haWwtMjQ2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTZ9.5-RJVWl8wK0h_UgzfJ49Q___mH21UhAKynhpSIfGq34" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-335",
    "url": "/v2/users/uaa-id-335",
    "created_at": "2015-10-13T17:31:55Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "a38e289f-15c5-45c3-b1ee-f5664c174ac3",
    "default_space_url": "/v2/spaces/a38e289f-15c5-45c3-b1ee-f5664c174ac3",
    "spaces_url": "/v2/users/uaa-id-335/spaces",
    "organizations_url": "/v2/users/uaa-id-335/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-335/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-335/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-335/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-335/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-335/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0362d89c-1553-4323-b8cf-4a0804f6109b
Content-Length: 845
X-Content-Type-Options: nosniff