Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

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

Request

Route

PUT /v2/spaces/42ed1a8c-9ddd-49b7-805f-a91fe240e18b/auditors/uaa-id-99

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMCIsImVtYWlsIjoiZW1haWwtNjFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzNjgyOTc3N30.ZS95_r-gqN2MTXAULrfAQUJ1Cu3I3yPZXD0YsH1QC58
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/42ed1a8c-9ddd-49b7-805f-a91fe240e18b/auditors/uaa-id-99" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMCIsImVtYWlsIjoiZW1haWwtNjFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzNjgyOTc3N30.ZS95_r-gqN2MTXAULrfAQUJ1Cu3I3yPZXD0YsH1QC58" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "42ed1a8c-9ddd-49b7-805f-a91fe240e18b",
    "url": "/v2/spaces/42ed1a8c-9ddd-49b7-805f-a91fe240e18b",
    "created_at": "2015-07-06T23:22:57Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-291",
    "organization_guid": "b0d2f504-3b24-445e-89ec-8fcef307eda9",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/b0d2f504-3b24-445e-89ec-8fcef307eda9",
    "developers_url": "/v2/spaces/42ed1a8c-9ddd-49b7-805f-a91fe240e18b/developers",
    "managers_url": "/v2/spaces/42ed1a8c-9ddd-49b7-805f-a91fe240e18b/managers",
    "auditors_url": "/v2/spaces/42ed1a8c-9ddd-49b7-805f-a91fe240e18b/auditors",
    "apps_url": "/v2/spaces/42ed1a8c-9ddd-49b7-805f-a91fe240e18b/apps",
    "routes_url": "/v2/spaces/42ed1a8c-9ddd-49b7-805f-a91fe240e18b/routes",
    "domains_url": "/v2/spaces/42ed1a8c-9ddd-49b7-805f-a91fe240e18b/domains",
    "service_instances_url": "/v2/spaces/42ed1a8c-9ddd-49b7-805f-a91fe240e18b/service_instances",
    "app_events_url": "/v2/spaces/42ed1a8c-9ddd-49b7-805f-a91fe240e18b/app_events",
    "events_url": "/v2/spaces/42ed1a8c-9ddd-49b7-805f-a91fe240e18b/events",
    "security_groups_url": "/v2/spaces/42ed1a8c-9ddd-49b7-805f-a91fe240e18b/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: afa15f28-22ed-4b80-9de0-385bdad076ec
Content-Length: 1277
X-Content-Type-Options: nosniff