Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

PUT /v2/spaces/:guid/auditors/:auditor_guid

Request

Route

PUT /v2/spaces/b6cf2824-938c-4b7d-ab87-22868c34fcb8/auditors/uaa-id-97

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk4IiwiZW1haWwiOiJlbWFpbC02M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3MzIzOTU5fQ.iNVHpgLFF-dHudRqUEG1HeXyPeSzILvlIl9RlrDUyxQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/b6cf2824-938c-4b7d-ab87-22868c34fcb8/auditors/uaa-id-97" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk4IiwiZW1haWwiOiJlbWFpbC02M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3MzIzOTU5fQ.iNVHpgLFF-dHudRqUEG1HeXyPeSzILvlIl9RlrDUyxQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "b6cf2824-938c-4b7d-ab87-22868c34fcb8",
    "url": "/v2/spaces/b6cf2824-938c-4b7d-ab87-22868c34fcb8",
    "created_at": "2015-03-18T22:52:39Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-245",
    "organization_guid": "e416ce65-130c-4cd0-b746-5a26aaa7c655",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/e416ce65-130c-4cd0-b746-5a26aaa7c655",
    "developers_url": "/v2/spaces/b6cf2824-938c-4b7d-ab87-22868c34fcb8/developers",
    "managers_url": "/v2/spaces/b6cf2824-938c-4b7d-ab87-22868c34fcb8/managers",
    "auditors_url": "/v2/spaces/b6cf2824-938c-4b7d-ab87-22868c34fcb8/auditors",
    "apps_url": "/v2/spaces/b6cf2824-938c-4b7d-ab87-22868c34fcb8/apps",
    "routes_url": "/v2/spaces/b6cf2824-938c-4b7d-ab87-22868c34fcb8/routes",
    "domains_url": "/v2/spaces/b6cf2824-938c-4b7d-ab87-22868c34fcb8/domains",
    "service_instances_url": "/v2/spaces/b6cf2824-938c-4b7d-ab87-22868c34fcb8/service_instances",
    "app_events_url": "/v2/spaces/b6cf2824-938c-4b7d-ab87-22868c34fcb8/app_events",
    "events_url": "/v2/spaces/b6cf2824-938c-4b7d-ab87-22868c34fcb8/events",
    "security_groups_url": "/v2/spaces/b6cf2824-938c-4b7d-ab87-22868c34fcb8/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ae3afb92-5bdd-4078-8f85-afe0f1270df3
Content-Length: 1254
X-Content-Type-Options: nosniff