Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

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

Request

Route

PUT /v2/spaces/3f83a8bf-67d5-40aa-ac8c-2dd57f747fd0/auditors/uaa-id-234

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/3f83a8bf-67d5-40aa-ac8c-2dd57f747fd0/auditors/uaa-id-234" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNSIsImVtYWlsIjoiZW1haWwtMTYzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MDZ9.xMfVp9Kc5uOq5Qkg6PKAuk8C5jMETDGnSw0kjw4kRgc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "3f83a8bf-67d5-40aa-ac8c-2dd57f747fd0",
    "url": "/v2/spaces/3f83a8bf-67d5-40aa-ac8c-2dd57f747fd0",
    "created_at": "2015-08-31T21:50:06Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-849",
    "organization_guid": "a491550b-06e8-4f31-b83b-192e358811b0",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/a491550b-06e8-4f31-b83b-192e358811b0",
    "developers_url": "/v2/spaces/3f83a8bf-67d5-40aa-ac8c-2dd57f747fd0/developers",
    "managers_url": "/v2/spaces/3f83a8bf-67d5-40aa-ac8c-2dd57f747fd0/managers",
    "auditors_url": "/v2/spaces/3f83a8bf-67d5-40aa-ac8c-2dd57f747fd0/auditors",
    "apps_url": "/v2/spaces/3f83a8bf-67d5-40aa-ac8c-2dd57f747fd0/apps",
    "routes_url": "/v2/spaces/3f83a8bf-67d5-40aa-ac8c-2dd57f747fd0/routes",
    "domains_url": "/v2/spaces/3f83a8bf-67d5-40aa-ac8c-2dd57f747fd0/domains",
    "service_instances_url": "/v2/spaces/3f83a8bf-67d5-40aa-ac8c-2dd57f747fd0/service_instances",
    "app_events_url": "/v2/spaces/3f83a8bf-67d5-40aa-ac8c-2dd57f747fd0/app_events",
    "events_url": "/v2/spaces/3f83a8bf-67d5-40aa-ac8c-2dd57f747fd0/events",
    "security_groups_url": "/v2/spaces/3f83a8bf-67d5-40aa-ac8c-2dd57f747fd0/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 50dad978-806b-4c54-add9-e0c39205536d
Content-Length: 1277
X-Content-Type-Options: nosniff