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

Route

PUT /v2/spaces/f16487fb-e630-4245-bc3c-ae84e4def055/auditors/uaa-id-310

cURL

curl "https://api.[your-domain.com]/v2/spaces/f16487fb-e630-4245-bc3c-ae84e4def055/auditors/uaa-id-310" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxMSIsImVtYWlsIjoiZW1haWwtMjMyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NTJ9.iK_odIhTcNV3QFvLSGx4VXBgFlr58gfHC1Vq0DdDSOE" \
	-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: 0e0b2512-a432-4d63-8a99-afb4a4e78a0b
Content-Length: 1260
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "f16487fb-e630-4245-bc3c-ae84e4def055",
    "url": "/v2/spaces/f16487fb-e630-4245-bc3c-ae84e4def055",
    "created_at": "2015-01-20T01:52:32+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-1882",
    "organization_guid": "e2ef3dec-19f3-4504-bf4c-0caba02ef940",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/e2ef3dec-19f3-4504-bf4c-0caba02ef940",
    "developers_url": "/v2/spaces/f16487fb-e630-4245-bc3c-ae84e4def055/developers",
    "managers_url": "/v2/spaces/f16487fb-e630-4245-bc3c-ae84e4def055/managers",
    "auditors_url": "/v2/spaces/f16487fb-e630-4245-bc3c-ae84e4def055/auditors",
    "apps_url": "/v2/spaces/f16487fb-e630-4245-bc3c-ae84e4def055/apps",
    "routes_url": "/v2/spaces/f16487fb-e630-4245-bc3c-ae84e4def055/routes",
    "domains_url": "/v2/spaces/f16487fb-e630-4245-bc3c-ae84e4def055/domains",
    "service_instances_url": "/v2/spaces/f16487fb-e630-4245-bc3c-ae84e4def055/service_instances",
    "app_events_url": "/v2/spaces/f16487fb-e630-4245-bc3c-ae84e4def055/app_events",
    "events_url": "/v2/spaces/f16487fb-e630-4245-bc3c-ae84e4def055/events",
    "security_groups_url": "/v2/spaces/f16487fb-e630-4245-bc3c-ae84e4def055/security_groups"
  }
}