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-84/audited_organizations/d42857e9-8d1f-4762-8420-6cf0390e7302

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.eyJ1c2VyX2lkIjoidWFhLWlkLTg1IiwiZW1haWwiOiJlbWFpbC02MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2MTg3NzQwfQ.11qTuvDW1-QT7XvitvtwCy1ZSF3vInTip5_Fq0qLfic
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/users/uaa-id-84/audited_organizations/d42857e9-8d1f-4762-8420-6cf0390e7302" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg1IiwiZW1haWwiOiJlbWFpbC02MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI2MTg3NzQwfQ.11qTuvDW1-QT7XvitvtwCy1ZSF3vInTip5_Fq0qLfic" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "uaa-id-84",
    "url": "/v2/users/uaa-id-84",
    "created_at": "2015-03-05T19:15:40Z",
    "updated_at": null
  },
  "entity": {
    "admin": false,
    "active": false,
    "default_space_guid": "69d4daf2-09bd-421a-a2cd-9f3b1b7c1adf",
    "default_space_url": "/v2/spaces/69d4daf2-09bd-421a-a2cd-9f3b1b7c1adf",
    "spaces_url": "/v2/users/uaa-id-84/spaces",
    "organizations_url": "/v2/users/uaa-id-84/organizations",
    "managed_organizations_url": "/v2/users/uaa-id-84/managed_organizations",
    "billing_managed_organizations_url": "/v2/users/uaa-id-84/billing_managed_organizations",
    "audited_organizations_url": "/v2/users/uaa-id-84/audited_organizations",
    "managed_spaces_url": "/v2/users/uaa-id-84/managed_spaces",
    "audited_spaces_url": "/v2/users/uaa-id-84/audited_spaces"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: af16bedf-6df4-4bd2-bd06-db1be902f559
Content-Length: 836
X-Content-Type-Options: nosniff