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-328/audited_organizations/62eba380-28e4-4e40-af3a-33cd72e2486c

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-328/audited_organizations/62eba380-28e4-4e40-af3a-33cd72e2486c" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyOSIsImVtYWlsIjoiZW1haWwtMjEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTF9.PIeljLwmfbkXa6D0wmqhCqVjuHgJkam7dI5jHBdjWCk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-328",
    "url": "/v2/users/uaa-id-328",
    "created_at": "2015-09-30T23:30:51Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "0c2bb401-1ce8-4c4b-bba4-0bc3bb405e8f",
    "default_space_url": "/v2/spaces/0c2bb401-1ce8-4c4b-bba4-0bc3bb405e8f",
    "spaces_url": "/v2/users/uaa-id-328/spaces",
    "organizations_url": "/v2/users/uaa-id-328/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-328/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-328/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-328/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-328/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-328/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f2bd6c3d-cc9f-45ec-9f5d-a245c8e24368
Content-Length: 845
X-Content-Type-Options: nosniff