Home
Version 3
Spaces API

Spaces API

Associate Auditor with the Space

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

Request

Route

PUT /v2/spaces/b7578f1b-6391-4a9a-b729-896c671727c4/auditors/uaa-id-270

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MSIsImVtYWlsIjoiZW1haWwtMTk3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDZ9.dnUD0Ns5u80rAl16kq934zbMBNUh8P92zHfEAMUk-CE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/b7578f1b-6391-4a9a-b729-896c671727c4/auditors/uaa-id-270" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MSIsImVtYWlsIjoiZW1haWwtMTk3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDZ9.dnUD0Ns5u80rAl16kq934zbMBNUh8P92zHfEAMUk-CE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "b7578f1b-6391-4a9a-b729-896c671727c4",
    "url": "/v2/spaces/b7578f1b-6391-4a9a-b729-896c671727c4",
    "created_at": "2016-04-22T19:33:26Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-985",
    "organization_guid": "9af0a247-ca15-4363-a6d8-26f080390c0c",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/9af0a247-ca15-4363-a6d8-26f080390c0c",
    "developers_url": "/v2/spaces/b7578f1b-6391-4a9a-b729-896c671727c4/developers",
    "managers_url": "/v2/spaces/b7578f1b-6391-4a9a-b729-896c671727c4/managers",
    "auditors_url": "/v2/spaces/b7578f1b-6391-4a9a-b729-896c671727c4/auditors",
    "apps_url": "/v2/spaces/b7578f1b-6391-4a9a-b729-896c671727c4/apps",
    "routes_url": "/v2/spaces/b7578f1b-6391-4a9a-b729-896c671727c4/routes",
    "domains_url": "/v2/spaces/b7578f1b-6391-4a9a-b729-896c671727c4/domains",
    "service_instances_url": "/v2/spaces/b7578f1b-6391-4a9a-b729-896c671727c4/service_instances",
    "app_events_url": "/v2/spaces/b7578f1b-6391-4a9a-b729-896c671727c4/app_events",
    "events_url": "/v2/spaces/b7578f1b-6391-4a9a-b729-896c671727c4/events",
    "security_groups_url": "/v2/spaces/b7578f1b-6391-4a9a-b729-896c671727c4/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5d849255-244a-4aa2-b613-b16488e7476b
Content-Length: 1277
X-Content-Type-Options: nosniff