Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

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

Request

Route

PUT /v2/spaces/212c711a-90b9-426c-86b5-373dee0207d4/auditors/uaa-id-62

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/212c711a-90b9-426c-86b5-373dee0207d4/auditors/uaa-id-62" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYzIiwiZW1haWwiOiJlbWFpbC0zMkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ5NTMxNTA4fQ.ec1pudbCXw1E31QLJlfIwQ8RuVwI7a_BC2zqVrClp5A" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "212c711a-90b9-426c-86b5-373dee0207d4",
    "url": "/v2/spaces/212c711a-90b9-426c-86b5-373dee0207d4",
    "created_at": "2015-11-30T23:38:28Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-110",
    "organization_guid": "fe789af1-5da2-467d-aae4-3e5d7bc682c7",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/fe789af1-5da2-467d-aae4-3e5d7bc682c7",
    "developers_url": "/v2/spaces/212c711a-90b9-426c-86b5-373dee0207d4/developers",
    "managers_url": "/v2/spaces/212c711a-90b9-426c-86b5-373dee0207d4/managers",
    "auditors_url": "/v2/spaces/212c711a-90b9-426c-86b5-373dee0207d4/auditors",
    "apps_url": "/v2/spaces/212c711a-90b9-426c-86b5-373dee0207d4/apps",
    "routes_url": "/v2/spaces/212c711a-90b9-426c-86b5-373dee0207d4/routes",
    "domains_url": "/v2/spaces/212c711a-90b9-426c-86b5-373dee0207d4/domains",
    "service_instances_url": "/v2/spaces/212c711a-90b9-426c-86b5-373dee0207d4/service_instances",
    "app_events_url": "/v2/spaces/212c711a-90b9-426c-86b5-373dee0207d4/app_events",
    "events_url": "/v2/spaces/212c711a-90b9-426c-86b5-373dee0207d4/events",
    "security_groups_url": "/v2/spaces/212c711a-90b9-426c-86b5-373dee0207d4/security_groups"
  }
}

Headers

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