Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

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

Request

Route

PUT /v2/spaces/4fe16970-3a8b-46fc-8e41-caafbced1b70/auditors/uaa-id-137

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/4fe16970-3a8b-46fc-8e41-caafbced1b70/auditors/uaa-id-137" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzOCIsImVtYWlsIjoiZW1haWwtMTMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MTR9.HkGub71jJzh9CQVw4AlCmPJGAtpAbD3HJwKzqe_3R4g" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "4fe16970-3a8b-46fc-8e41-caafbced1b70",
    "url": "/v2/spaces/4fe16970-3a8b-46fc-8e41-caafbced1b70",
    "created_at": "2015-05-15T16:53:34Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-736",
    "organization_guid": "2f24e9eb-1b1b-4959-8c18-cde288500d15",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/2f24e9eb-1b1b-4959-8c18-cde288500d15",
    "developers_url": "/v2/spaces/4fe16970-3a8b-46fc-8e41-caafbced1b70/developers",
    "managers_url": "/v2/spaces/4fe16970-3a8b-46fc-8e41-caafbced1b70/managers",
    "auditors_url": "/v2/spaces/4fe16970-3a8b-46fc-8e41-caafbced1b70/auditors",
    "apps_url": "/v2/spaces/4fe16970-3a8b-46fc-8e41-caafbced1b70/apps",
    "routes_url": "/v2/spaces/4fe16970-3a8b-46fc-8e41-caafbced1b70/routes",
    "domains_url": "/v2/spaces/4fe16970-3a8b-46fc-8e41-caafbced1b70/domains",
    "service_instances_url": "/v2/spaces/4fe16970-3a8b-46fc-8e41-caafbced1b70/service_instances",
    "app_events_url": "/v2/spaces/4fe16970-3a8b-46fc-8e41-caafbced1b70/app_events",
    "events_url": "/v2/spaces/4fe16970-3a8b-46fc-8e41-caafbced1b70/events",
    "security_groups_url": "/v2/spaces/4fe16970-3a8b-46fc-8e41-caafbced1b70/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 25f07fcb-eb09-439f-8b51-7db5ecf126ab
Content-Length: 1277
X-Content-Type-Options: nosniff