Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

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

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4MiIsImVtYWlsIjoiZW1haWwtMjE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjd9.mfczg6Aa5W6PVWUerXODLAbfKuuYO-Ncso_r8S_gBTM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/spaces/96c8cf4e-b8bb-44ca-90a9-8017a36dbb64/auditors/uaa-id-281

cURL

curl "https://api.[your-domain.com]/v2/spaces/96c8cf4e-b8bb-44ca-90a9-8017a36dbb64/auditors/uaa-id-281" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4MiIsImVtYWlsIjoiZW1haWwtMjE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjd9.mfczg6Aa5W6PVWUerXODLAbfKuuYO-Ncso_r8S_gBTM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c595c021-7b0a-4cb5-837c-c6ba743a3bba
Content-Length: 1260
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "96c8cf4e-b8bb-44ca-90a9-8017a36dbb64",
    "url": "/v2/spaces/96c8cf4e-b8bb-44ca-90a9-8017a36dbb64",
    "created_at": "2014-11-24T19:32:47+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-1001",
    "organization_guid": "6c9fb68f-c6e8-4a63-bac7-194889bc573a",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/6c9fb68f-c6e8-4a63-bac7-194889bc573a",
    "developers_url": "/v2/spaces/96c8cf4e-b8bb-44ca-90a9-8017a36dbb64/developers",
    "managers_url": "/v2/spaces/96c8cf4e-b8bb-44ca-90a9-8017a36dbb64/managers",
    "auditors_url": "/v2/spaces/96c8cf4e-b8bb-44ca-90a9-8017a36dbb64/auditors",
    "apps_url": "/v2/spaces/96c8cf4e-b8bb-44ca-90a9-8017a36dbb64/apps",
    "routes_url": "/v2/spaces/96c8cf4e-b8bb-44ca-90a9-8017a36dbb64/routes",
    "domains_url": "/v2/spaces/96c8cf4e-b8bb-44ca-90a9-8017a36dbb64/domains",
    "service_instances_url": "/v2/spaces/96c8cf4e-b8bb-44ca-90a9-8017a36dbb64/service_instances",
    "app_events_url": "/v2/spaces/96c8cf4e-b8bb-44ca-90a9-8017a36dbb64/app_events",
    "events_url": "/v2/spaces/96c8cf4e-b8bb-44ca-90a9-8017a36dbb64/events",
    "security_groups_url": "/v2/spaces/96c8cf4e-b8bb-44ca-90a9-8017a36dbb64/security_groups"
  }
}