Home
Version 3
Spaces API

Spaces API

Disassociate Auditor with the Space by Username

DELETE v2/spaces/:guid/auditors

Request

Route

DELETE v2/spaces/294d70cd-3d3e-436e-86b1-bd81a37da12d/auditors

Parameters

Name Description Valid Values Example Values
guid The guid of the Space

Body

Name Description Default Valid Values Example Values
username The user's name
  • user@example.com
{
  "username": "auditor@example.com"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NSIsImVtYWlsIjoiZW1haWwtMTk0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NDN9.viOCin3IQiL-WTKqbcLjwT3nll2tIUZ3ywRhF3GFqBA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/294d70cd-3d3e-436e-86b1-bd81a37da12d/auditors" -d '{
  "username": "auditor@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NSIsImVtYWlsIjoiZW1haWwtMTk0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NDN9.viOCin3IQiL-WTKqbcLjwT3nll2tIUZ3ywRhF3GFqBA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "294d70cd-3d3e-436e-86b1-bd81a37da12d",
    "url": "/v2/spaces/294d70cd-3d3e-436e-86b1-bd81a37da12d",
    "created_at": "2015-11-03T00:54:03Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1082",
    "organization_guid": "71cc288b-9c1b-4aaf-bf9a-5cfc81ce8e0e",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/71cc288b-9c1b-4aaf-bf9a-5cfc81ce8e0e",
    "developers_url": "/v2/spaces/294d70cd-3d3e-436e-86b1-bd81a37da12d/developers",
    "managers_url": "/v2/spaces/294d70cd-3d3e-436e-86b1-bd81a37da12d/managers",
    "auditors_url": "/v2/spaces/294d70cd-3d3e-436e-86b1-bd81a37da12d/auditors",
    "apps_url": "/v2/spaces/294d70cd-3d3e-436e-86b1-bd81a37da12d/apps",
    "routes_url": "/v2/spaces/294d70cd-3d3e-436e-86b1-bd81a37da12d/routes",
    "domains_url": "/v2/spaces/294d70cd-3d3e-436e-86b1-bd81a37da12d/domains",
    "service_instances_url": "/v2/spaces/294d70cd-3d3e-436e-86b1-bd81a37da12d/service_instances",
    "app_events_url": "/v2/spaces/294d70cd-3d3e-436e-86b1-bd81a37da12d/app_events",
    "events_url": "/v2/spaces/294d70cd-3d3e-436e-86b1-bd81a37da12d/events",
    "security_groups_url": "/v2/spaces/294d70cd-3d3e-436e-86b1-bd81a37da12d/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d0c828ad-d379-4a73-a3bf-8e055433362a
Content-Length: 1278
X-Content-Type-Options: nosniff