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

Route

PUT /v2/spaces/7e999c46-fc7f-44bd-bb3d-9b9f31570a9f/auditors/uaa-id-277

cURL

curl "https://api.[your-domain.com]/v2/spaces/7e999c46-fc7f-44bd-bb3d-9b9f31570a9f/auditors/uaa-id-277" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3OCIsImVtYWlsIjoiZW1haWwtMTg3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzJ9.LX1OJ4QILHJhWPx4xTNZLrWlrPvtUX9H0wT_N8d6ztQ" \
	-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: 30bbac08-6b58-4e93-aa13-94b50c7b1d58
Content-Length: 1255
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "7e999c46-fc7f-44bd-bb3d-9b9f31570a9f",
    "url": "/v2/spaces/7e999c46-fc7f-44bd-bb3d-9b9f31570a9f",
    "created_at": "2015-02-10T01:42:52Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1386",
    "organization_guid": "969008a3-0254-4fad-9343-a774c07478f5",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/969008a3-0254-4fad-9343-a774c07478f5",
    "developers_url": "/v2/spaces/7e999c46-fc7f-44bd-bb3d-9b9f31570a9f/developers",
    "managers_url": "/v2/spaces/7e999c46-fc7f-44bd-bb3d-9b9f31570a9f/managers",
    "auditors_url": "/v2/spaces/7e999c46-fc7f-44bd-bb3d-9b9f31570a9f/auditors",
    "apps_url": "/v2/spaces/7e999c46-fc7f-44bd-bb3d-9b9f31570a9f/apps",
    "routes_url": "/v2/spaces/7e999c46-fc7f-44bd-bb3d-9b9f31570a9f/routes",
    "domains_url": "/v2/spaces/7e999c46-fc7f-44bd-bb3d-9b9f31570a9f/domains",
    "service_instances_url": "/v2/spaces/7e999c46-fc7f-44bd-bb3d-9b9f31570a9f/service_instances",
    "app_events_url": "/v2/spaces/7e999c46-fc7f-44bd-bb3d-9b9f31570a9f/app_events",
    "events_url": "/v2/spaces/7e999c46-fc7f-44bd-bb3d-9b9f31570a9f/events",
    "security_groups_url": "/v2/spaces/7e999c46-fc7f-44bd-bb3d-9b9f31570a9f/security_groups"
  }
}