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-282/audited_organizations/d1181197-dd49-414e-aaeb-71ea07e949a1

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-282/audited_organizations/d1181197-dd49-414e-aaeb-71ea07e949a1" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4MyIsImVtYWlsIjoiZW1haWwtMTk0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NzF9.OHeyLCzP6JWvES7Dmx3hwChz42ygj9fI7jVslIXUbUI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-282",
    "url": "/v2/users/uaa-id-282",
    "created_at": "2015-03-03T00:51:11Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "2b5cf22b-9548-480a-9441-2cd2ae613d6f",
    "default_space_url": "/v2/spaces/2b5cf22b-9548-480a-9441-2cd2ae613d6f",
    "spaces_url": "/v2/users/uaa-id-282/spaces",
    "organizations_url": "/v2/users/uaa-id-282/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-282/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-282/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-282/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-282/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-282/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d0b4242a-32d4-4276-8035-1826bbab76e1
Content-Length: 845
X-Content-Type-Options: nosniff