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-150/audited_organizations/9a7af22e-75f6-42bc-83ea-a04a91411031

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

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-150/audited_organizations/9a7af22e-75f6-42bc-83ea-a04a91411031" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1MSIsImVtYWlsIjoiZW1haWwtMTA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MDN9.piJ9hnStph_nJx2Y1GbeeqQUioaSA6ZvJupKb3NBF9Q" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-150",
    "url": "/v2/users/uaa-id-150",
    "created_at": "2015-04-07T19:11:43Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "a4f9b426-c12e-4226-993d-acbf0c238f1b",
    "default_space_url": "/v2/spaces/a4f9b426-c12e-4226-993d-acbf0c238f1b",
    "spaces_url": "/v2/users/uaa-id-150/spaces",
    "organizations_url": "/v2/users/uaa-id-150/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-150/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-150/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-150/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-150/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-150/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5d8c7b9b-6b03-4e6f-bea0-ac0bca6dd35a
Content-Length: 845
X-Content-Type-Options: nosniff