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.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NCIsImVtYWlsIjoiZW1haWwtMjg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxNDR9.9-GKnT8iU8OK3xz-QH0KqZ45jsWoUZKMYdFbb2D4cJk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/spaces/e5cc64ca-b0f1-4d5c-bd0a-34ff59572372/auditors/uaa-id-383

cURL

curl "https://api.[your-domain.com]/v2/spaces/e5cc64ca-b0f1-4d5c-bd0a-34ff59572372/auditors/uaa-id-383" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NCIsImVtYWlsIjoiZW1haWwtMjg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxNDR9.9-GKnT8iU8OK3xz-QH0KqZ45jsWoUZKMYdFbb2D4cJk" \
	-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: 5942b1da-31c0-4569-8ae0-7c72e9a2922e
Content-Length: 1255
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "e5cc64ca-b0f1-4d5c-bd0a-34ff59572372",
    "url": "/v2/spaces/e5cc64ca-b0f1-4d5c-bd0a-34ff59572372",
    "created_at": "2015-02-12T01:42:24Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2051",
    "organization_guid": "88eab96e-0f87-4f2c-9f58-e5604d3049c9",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/88eab96e-0f87-4f2c-9f58-e5604d3049c9",
    "developers_url": "/v2/spaces/e5cc64ca-b0f1-4d5c-bd0a-34ff59572372/developers",
    "managers_url": "/v2/spaces/e5cc64ca-b0f1-4d5c-bd0a-34ff59572372/managers",
    "auditors_url": "/v2/spaces/e5cc64ca-b0f1-4d5c-bd0a-34ff59572372/auditors",
    "apps_url": "/v2/spaces/e5cc64ca-b0f1-4d5c-bd0a-34ff59572372/apps",
    "routes_url": "/v2/spaces/e5cc64ca-b0f1-4d5c-bd0a-34ff59572372/routes",
    "domains_url": "/v2/spaces/e5cc64ca-b0f1-4d5c-bd0a-34ff59572372/domains",
    "service_instances_url": "/v2/spaces/e5cc64ca-b0f1-4d5c-bd0a-34ff59572372/service_instances",
    "app_events_url": "/v2/spaces/e5cc64ca-b0f1-4d5c-bd0a-34ff59572372/app_events",
    "events_url": "/v2/spaces/e5cc64ca-b0f1-4d5c-bd0a-34ff59572372/events",
    "security_groups_url": "/v2/spaces/e5cc64ca-b0f1-4d5c-bd0a-34ff59572372/security_groups"
  }
}