Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

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

Request

Route

PUT /v2/spaces/549cb18d-8b91-4b1f-a7d2-c948eb8c00b3/auditors/uaa-id-21

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/549cb18d-8b91-4b1f-a7d2-c948eb8c00b3/auditors/uaa-id-21" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyIiwiZW1haWwiOiJlbWFpbC0xOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzMzEwOTcxfQ.XtpSsisf1PECNtaT3FCOmmLdwqg3q_Ybk1YmuPZnXy4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "549cb18d-8b91-4b1f-a7d2-c948eb8c00b3",
    "url": "/v2/spaces/549cb18d-8b91-4b1f-a7d2-c948eb8c00b3",
    "created_at": "2016-01-13T17:29:31Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-56",
    "organization_guid": "06903f72-1e0b-4945-856d-67023f28227b",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/06903f72-1e0b-4945-856d-67023f28227b",
    "developers_url": "/v2/spaces/549cb18d-8b91-4b1f-a7d2-c948eb8c00b3/developers",
    "managers_url": "/v2/spaces/549cb18d-8b91-4b1f-a7d2-c948eb8c00b3/managers",
    "auditors_url": "/v2/spaces/549cb18d-8b91-4b1f-a7d2-c948eb8c00b3/auditors",
    "apps_url": "/v2/spaces/549cb18d-8b91-4b1f-a7d2-c948eb8c00b3/apps",
    "routes_url": "/v2/spaces/549cb18d-8b91-4b1f-a7d2-c948eb8c00b3/routes",
    "domains_url": "/v2/spaces/549cb18d-8b91-4b1f-a7d2-c948eb8c00b3/domains",
    "service_instances_url": "/v2/spaces/549cb18d-8b91-4b1f-a7d2-c948eb8c00b3/service_instances",
    "app_events_url": "/v2/spaces/549cb18d-8b91-4b1f-a7d2-c948eb8c00b3/app_events",
    "events_url": "/v2/spaces/549cb18d-8b91-4b1f-a7d2-c948eb8c00b3/events",
    "security_groups_url": "/v2/spaces/549cb18d-8b91-4b1f-a7d2-c948eb8c00b3/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1276
X-Content-Type-Options: nosniff