Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

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

Request

Route

PUT /v2/spaces/d1061d93-ada1-443d-a897-99b272636ec8/auditors/uaa-id-378

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/d1061d93-ada1-443d-a897-99b272636ec8/auditors/uaa-id-378" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3OSIsImVtYWlsIjoiZW1haWwtMjg3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzUwMDB9.ZVM2NTQcKCjPW3lWafR02iusIuKUeF305zUkDh4OoOY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "d1061d93-ada1-443d-a897-99b272636ec8",
    "url": "/v2/spaces/d1061d93-ada1-443d-a897-99b272636ec8",
    "created_at": "2015-05-21T01:03:20Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2233",
    "organization_guid": "9476b8e4-3ab1-4842-b694-637cb04281f1",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/9476b8e4-3ab1-4842-b694-637cb04281f1",
    "developers_url": "/v2/spaces/d1061d93-ada1-443d-a897-99b272636ec8/developers",
    "managers_url": "/v2/spaces/d1061d93-ada1-443d-a897-99b272636ec8/managers",
    "auditors_url": "/v2/spaces/d1061d93-ada1-443d-a897-99b272636ec8/auditors",
    "apps_url": "/v2/spaces/d1061d93-ada1-443d-a897-99b272636ec8/apps",
    "routes_url": "/v2/spaces/d1061d93-ada1-443d-a897-99b272636ec8/routes",
    "domains_url": "/v2/spaces/d1061d93-ada1-443d-a897-99b272636ec8/domains",
    "service_instances_url": "/v2/spaces/d1061d93-ada1-443d-a897-99b272636ec8/service_instances",
    "app_events_url": "/v2/spaces/d1061d93-ada1-443d-a897-99b272636ec8/app_events",
    "events_url": "/v2/spaces/d1061d93-ada1-443d-a897-99b272636ec8/events",
    "security_groups_url": "/v2/spaces/d1061d93-ada1-443d-a897-99b272636ec8/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b2c9985a-b11a-4e5c-9953-a132ae4d5861
Content-Length: 1278
X-Content-Type-Options: nosniff