Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

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

Request

Route

PUT /v2/spaces/ba602660-dfbc-45f5-b353-bd925f66c3bd/auditors/uaa-id-363

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NCIsImVtYWlsIjoiZW1haWwtMjY3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDl9.yceghyiOk0xddlbBeOWOCG0SGG5yKkd-qdStJqDgAs0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/ba602660-dfbc-45f5-b353-bd925f66c3bd/auditors/uaa-id-363" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2NCIsImVtYWlsIjoiZW1haWwtMjY3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDl9.yceghyiOk0xddlbBeOWOCG0SGG5yKkd-qdStJqDgAs0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "ba602660-dfbc-45f5-b353-bd925f66c3bd",
    "url": "/v2/spaces/ba602660-dfbc-45f5-b353-bd925f66c3bd",
    "created_at": "2016-03-14T22:30:49Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2325",
    "organization_guid": "85449cce-a9c5-4ebc-8898-454069c08c33",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/85449cce-a9c5-4ebc-8898-454069c08c33",
    "developers_url": "/v2/spaces/ba602660-dfbc-45f5-b353-bd925f66c3bd/developers",
    "managers_url": "/v2/spaces/ba602660-dfbc-45f5-b353-bd925f66c3bd/managers",
    "auditors_url": "/v2/spaces/ba602660-dfbc-45f5-b353-bd925f66c3bd/auditors",
    "apps_url": "/v2/spaces/ba602660-dfbc-45f5-b353-bd925f66c3bd/apps",
    "routes_url": "/v2/spaces/ba602660-dfbc-45f5-b353-bd925f66c3bd/routes",
    "domains_url": "/v2/spaces/ba602660-dfbc-45f5-b353-bd925f66c3bd/domains",
    "service_instances_url": "/v2/spaces/ba602660-dfbc-45f5-b353-bd925f66c3bd/service_instances",
    "app_events_url": "/v2/spaces/ba602660-dfbc-45f5-b353-bd925f66c3bd/app_events",
    "events_url": "/v2/spaces/ba602660-dfbc-45f5-b353-bd925f66c3bd/events",
    "security_groups_url": "/v2/spaces/ba602660-dfbc-45f5-b353-bd925f66c3bd/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1278
X-Content-Type-Options: nosniff