Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

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

Request

Route

PUT /v2/spaces/6a39e3ea-3b02-4bf0-9b91-a6aec42fe66a/auditors/uaa-id-171

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MiIsImVtYWlsIjoiZW1haWwtOTlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTU1Nzk0MH0.AavBrP7cQSbk_dxk5J3jinT9aazKPXQfwpymr_xN2dU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/6a39e3ea-3b02-4bf0-9b91-a6aec42fe66a/auditors/uaa-id-171" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MiIsImVtYWlsIjoiZW1haWwtOTlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTU1Nzk0MH0.AavBrP7cQSbk_dxk5J3jinT9aazKPXQfwpymr_xN2dU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "6a39e3ea-3b02-4bf0-9b91-a6aec42fe66a",
    "url": "/v2/spaces/6a39e3ea-3b02-4bf0-9b91-a6aec42fe66a",
    "created_at": "2015-10-15T23:52:20Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1366",
    "organization_guid": "9a53af6f-fe77-4895-8552-8bde61ad9704",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/9a53af6f-fe77-4895-8552-8bde61ad9704",
    "developers_url": "/v2/spaces/6a39e3ea-3b02-4bf0-9b91-a6aec42fe66a/developers",
    "managers_url": "/v2/spaces/6a39e3ea-3b02-4bf0-9b91-a6aec42fe66a/managers",
    "auditors_url": "/v2/spaces/6a39e3ea-3b02-4bf0-9b91-a6aec42fe66a/auditors",
    "apps_url": "/v2/spaces/6a39e3ea-3b02-4bf0-9b91-a6aec42fe66a/apps",
    "routes_url": "/v2/spaces/6a39e3ea-3b02-4bf0-9b91-a6aec42fe66a/routes",
    "domains_url": "/v2/spaces/6a39e3ea-3b02-4bf0-9b91-a6aec42fe66a/domains",
    "service_instances_url": "/v2/spaces/6a39e3ea-3b02-4bf0-9b91-a6aec42fe66a/service_instances",
    "app_events_url": "/v2/spaces/6a39e3ea-3b02-4bf0-9b91-a6aec42fe66a/app_events",
    "events_url": "/v2/spaces/6a39e3ea-3b02-4bf0-9b91-a6aec42fe66a/events",
    "security_groups_url": "/v2/spaces/6a39e3ea-3b02-4bf0-9b91-a6aec42fe66a/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 4ce6123a-7211-4ebb-a76d-d2485fd3c396
Content-Length: 1278
X-Content-Type-Options: nosniff