Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

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

Request

Route

PUT /v2/spaces/9639c996-9005-4b70-b852-d40f346d58dc/auditors/uaa-id-13

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0IiwiZW1haWwiOiJlbWFpbC0xMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM4NjQxNzg3fQ.EPT6EMFYLHOZwEowEzHqfoDtthlz-UgNa_0ff07OzU4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/9639c996-9005-4b70-b852-d40f346d58dc/auditors/uaa-id-13" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0IiwiZW1haWwiOiJlbWFpbC0xMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM4NjQxNzg3fQ.EPT6EMFYLHOZwEowEzHqfoDtthlz-UgNa_0ff07OzU4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "9639c996-9005-4b70-b852-d40f346d58dc",
    "url": "/v2/spaces/9639c996-9005-4b70-b852-d40f346d58dc",
    "created_at": "2015-07-27T22:43:07Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-59",
    "organization_guid": "bc168e1d-b399-4624-b7f6-fbe64eeb870f",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/bc168e1d-b399-4624-b7f6-fbe64eeb870f",
    "developers_url": "/v2/spaces/9639c996-9005-4b70-b852-d40f346d58dc/developers",
    "managers_url": "/v2/spaces/9639c996-9005-4b70-b852-d40f346d58dc/managers",
    "auditors_url": "/v2/spaces/9639c996-9005-4b70-b852-d40f346d58dc/auditors",
    "apps_url": "/v2/spaces/9639c996-9005-4b70-b852-d40f346d58dc/apps",
    "routes_url": "/v2/spaces/9639c996-9005-4b70-b852-d40f346d58dc/routes",
    "domains_url": "/v2/spaces/9639c996-9005-4b70-b852-d40f346d58dc/domains",
    "service_instances_url": "/v2/spaces/9639c996-9005-4b70-b852-d40f346d58dc/service_instances",
    "app_events_url": "/v2/spaces/9639c996-9005-4b70-b852-d40f346d58dc/app_events",
    "events_url": "/v2/spaces/9639c996-9005-4b70-b852-d40f346d58dc/events",
    "security_groups_url": "/v2/spaces/9639c996-9005-4b70-b852-d40f346d58dc/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7fa441a9-5403-4184-9024-6f3b00a7f76d
Content-Length: 1276
X-Content-Type-Options: nosniff