Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

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

Request

Route

PUT /v2/spaces/7bd11b84-aca3-4e67-a0a3-903880b07fc2/auditors/uaa-id-23

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/7bd11b84-aca3-4e67-a0a3-903880b07fc2/auditors/uaa-id-23" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0IiwiZW1haWwiOiJlbWFpbC0xOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk2fQ.VgIN7K8gJdeNiiH_aoEmhIJf4F4HG2Sb8XhVOP2uST4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "7bd11b84-aca3-4e67-a0a3-903880b07fc2",
    "url": "/v2/spaces/7bd11b84-aca3-4e67-a0a3-903880b07fc2",
    "created_at": "2015-10-13T17:31:36Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-93",
    "organization_guid": "53a222f8-b27f-4bb0-bafb-9b6d7b1ea5c3",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/53a222f8-b27f-4bb0-bafb-9b6d7b1ea5c3",
    "developers_url": "/v2/spaces/7bd11b84-aca3-4e67-a0a3-903880b07fc2/developers",
    "managers_url": "/v2/spaces/7bd11b84-aca3-4e67-a0a3-903880b07fc2/managers",
    "auditors_url": "/v2/spaces/7bd11b84-aca3-4e67-a0a3-903880b07fc2/auditors",
    "apps_url": "/v2/spaces/7bd11b84-aca3-4e67-a0a3-903880b07fc2/apps",
    "routes_url": "/v2/spaces/7bd11b84-aca3-4e67-a0a3-903880b07fc2/routes",
    "domains_url": "/v2/spaces/7bd11b84-aca3-4e67-a0a3-903880b07fc2/domains",
    "service_instances_url": "/v2/spaces/7bd11b84-aca3-4e67-a0a3-903880b07fc2/service_instances",
    "app_events_url": "/v2/spaces/7bd11b84-aca3-4e67-a0a3-903880b07fc2/app_events",
    "events_url": "/v2/spaces/7bd11b84-aca3-4e67-a0a3-903880b07fc2/events",
    "security_groups_url": "/v2/spaces/7bd11b84-aca3-4e67-a0a3-903880b07fc2/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0e766907-9438-4397-9aa1-ba14059b32c1
Content-Length: 1276
X-Content-Type-Options: nosniff