Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

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

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

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

Route

PUT /v2/spaces/5b6c31d5-02c7-4eb7-8c2b-fa7aeb22b614/auditors/uaa-id-54

cURL

curl "https://api.[your-domain.com]/v2/spaces/5b6c31d5-02c7-4eb7-8c2b-fa7aeb22b614/auditors/uaa-id-54" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU1IiwiZW1haWwiOiJlbWFpbC0zOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE5OTg5OTYyfQ.HJRXiCgfsP4RDnzSSofB6jE3lGnK8rOaSxQkWOga6ME" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d25a0671-9cc8-4f40-bc46-3c1cd368d561
Content-Length: 1259
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "5b6c31d5-02c7-4eb7-8c2b-fa7aeb22b614",
    "url": "/v2/spaces/5b6c31d5-02c7-4eb7-8c2b-fa7aeb22b614",
    "created_at": "2014-12-24T01:39:22+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-100",
    "organization_guid": "134a54d9-ac1c-4c4a-ba9c-56564d1e4ed3",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/134a54d9-ac1c-4c4a-ba9c-56564d1e4ed3",
    "developers_url": "/v2/spaces/5b6c31d5-02c7-4eb7-8c2b-fa7aeb22b614/developers",
    "managers_url": "/v2/spaces/5b6c31d5-02c7-4eb7-8c2b-fa7aeb22b614/managers",
    "auditors_url": "/v2/spaces/5b6c31d5-02c7-4eb7-8c2b-fa7aeb22b614/auditors",
    "apps_url": "/v2/spaces/5b6c31d5-02c7-4eb7-8c2b-fa7aeb22b614/apps",
    "routes_url": "/v2/spaces/5b6c31d5-02c7-4eb7-8c2b-fa7aeb22b614/routes",
    "domains_url": "/v2/spaces/5b6c31d5-02c7-4eb7-8c2b-fa7aeb22b614/domains",
    "service_instances_url": "/v2/spaces/5b6c31d5-02c7-4eb7-8c2b-fa7aeb22b614/service_instances",
    "app_events_url": "/v2/spaces/5b6c31d5-02c7-4eb7-8c2b-fa7aeb22b614/app_events",
    "events_url": "/v2/spaces/5b6c31d5-02c7-4eb7-8c2b-fa7aeb22b614/events",
    "security_groups_url": "/v2/spaces/5b6c31d5-02c7-4eb7-8c2b-fa7aeb22b614/security_groups"
  }
}