Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

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

Request

Route

PUT /v2/spaces/9297730f-c7d2-4b4c-b6d1-b0336a98ae7c/auditors/uaa-id-87

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.eyJ1c2VyX2lkIjoidWFhLWlkLTg4IiwiZW1haWwiOiJlbWFpbC00OUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMxNjQ2NjI5fQ.cIb4V5L5DZ0Z8REk_sTZP0B-14k8m9z5heweMT84XFQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/9297730f-c7d2-4b4c-b6d1-b0336a98ae7c/auditors/uaa-id-87" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg4IiwiZW1haWwiOiJlbWFpbC00OUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMxNjQ2NjI5fQ.cIb4V5L5DZ0Z8REk_sTZP0B-14k8m9z5heweMT84XFQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "9297730f-c7d2-4b4c-b6d1-b0336a98ae7c",
    "url": "/v2/spaces/9297730f-c7d2-4b4c-b6d1-b0336a98ae7c",
    "created_at": "2015-05-07T23:37:09Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-990",
    "organization_guid": "f54d1cd3-e645-446b-afce-f3b21def2ca1",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/f54d1cd3-e645-446b-afce-f3b21def2ca1",
    "developers_url": "/v2/spaces/9297730f-c7d2-4b4c-b6d1-b0336a98ae7c/developers",
    "managers_url": "/v2/spaces/9297730f-c7d2-4b4c-b6d1-b0336a98ae7c/managers",
    "auditors_url": "/v2/spaces/9297730f-c7d2-4b4c-b6d1-b0336a98ae7c/auditors",
    "apps_url": "/v2/spaces/9297730f-c7d2-4b4c-b6d1-b0336a98ae7c/apps",
    "routes_url": "/v2/spaces/9297730f-c7d2-4b4c-b6d1-b0336a98ae7c/routes",
    "domains_url": "/v2/spaces/9297730f-c7d2-4b4c-b6d1-b0336a98ae7c/domains",
    "service_instances_url": "/v2/spaces/9297730f-c7d2-4b4c-b6d1-b0336a98ae7c/service_instances",
    "app_events_url": "/v2/spaces/9297730f-c7d2-4b4c-b6d1-b0336a98ae7c/app_events",
    "events_url": "/v2/spaces/9297730f-c7d2-4b4c-b6d1-b0336a98ae7c/events",
    "security_groups_url": "/v2/spaces/9297730f-c7d2-4b4c-b6d1-b0336a98ae7c/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: fe099473-52d1-43c9-823f-e39ef12289c6
Content-Length: 1277
X-Content-Type-Options: nosniff