Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

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

Request

Route

PUT /v2/spaces/914ef786-6a28-4439-bda5-e6306844b1e3/auditors/uaa-id-401

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.eyJ1c2VyX2lkIjoidWFhLWlkLTQwMiIsImVtYWlsIjoiZW1haWwtMzA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NjZ9.T1uhULGtQaBFDezYrF1hylg_u0QQth8b8OQYEHMXWyQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/914ef786-6a28-4439-bda5-e6306844b1e3/auditors/uaa-id-401" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwMiIsImVtYWlsIjoiZW1haWwtMzA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NjZ9.T1uhULGtQaBFDezYrF1hylg_u0QQth8b8OQYEHMXWyQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "914ef786-6a28-4439-bda5-e6306844b1e3",
    "url": "/v2/spaces/914ef786-6a28-4439-bda5-e6306844b1e3",
    "created_at": "2015-06-16T23:41:06Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2290",
    "organization_guid": "3c104b89-b0f0-4dd1-9911-b8efb81e3449",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/3c104b89-b0f0-4dd1-9911-b8efb81e3449",
    "developers_url": "/v2/spaces/914ef786-6a28-4439-bda5-e6306844b1e3/developers",
    "managers_url": "/v2/spaces/914ef786-6a28-4439-bda5-e6306844b1e3/managers",
    "auditors_url": "/v2/spaces/914ef786-6a28-4439-bda5-e6306844b1e3/auditors",
    "apps_url": "/v2/spaces/914ef786-6a28-4439-bda5-e6306844b1e3/apps",
    "routes_url": "/v2/spaces/914ef786-6a28-4439-bda5-e6306844b1e3/routes",
    "domains_url": "/v2/spaces/914ef786-6a28-4439-bda5-e6306844b1e3/domains",
    "service_instances_url": "/v2/spaces/914ef786-6a28-4439-bda5-e6306844b1e3/service_instances",
    "app_events_url": "/v2/spaces/914ef786-6a28-4439-bda5-e6306844b1e3/app_events",
    "events_url": "/v2/spaces/914ef786-6a28-4439-bda5-e6306844b1e3/events",
    "security_groups_url": "/v2/spaces/914ef786-6a28-4439-bda5-e6306844b1e3/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c31e8fed-325f-44c0-bfd8-c7fe7a3db796
Content-Length: 1278
X-Content-Type-Options: nosniff