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

Route

PUT /v2/spaces/3e0df29e-3fea-49fa-bee4-f03ef08df397/auditors/uaa-id-192

cURL

curl "https://api.[your-domain.com]/v2/spaces/3e0df29e-3fea-49fa-bee4-f03ef08df397/auditors/uaa-id-192" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5MyIsImVtYWlsIjoiZW1haWwtMTM3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxMzl9.zE0iihIwdTPEqouO5W9XajQ-DN1lI4IrhCJh1EFGlc4" \
	-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: 6a2fb4cc-8d96-421c-915c-fd3ff4f253ad
Content-Length: 1259
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "3e0df29e-3fea-49fa-bee4-f03ef08df397",
    "url": "/v2/spaces/3e0df29e-3fea-49fa-bee4-f03ef08df397",
    "created_at": "2014-11-05T01:02:19+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-719",
    "organization_guid": "7163351c-b771-41d7-9b56-8c6ed3979c7d",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/7163351c-b771-41d7-9b56-8c6ed3979c7d",
    "developers_url": "/v2/spaces/3e0df29e-3fea-49fa-bee4-f03ef08df397/developers",
    "managers_url": "/v2/spaces/3e0df29e-3fea-49fa-bee4-f03ef08df397/managers",
    "auditors_url": "/v2/spaces/3e0df29e-3fea-49fa-bee4-f03ef08df397/auditors",
    "apps_url": "/v2/spaces/3e0df29e-3fea-49fa-bee4-f03ef08df397/apps",
    "routes_url": "/v2/spaces/3e0df29e-3fea-49fa-bee4-f03ef08df397/routes",
    "domains_url": "/v2/spaces/3e0df29e-3fea-49fa-bee4-f03ef08df397/domains",
    "service_instances_url": "/v2/spaces/3e0df29e-3fea-49fa-bee4-f03ef08df397/service_instances",
    "app_events_url": "/v2/spaces/3e0df29e-3fea-49fa-bee4-f03ef08df397/app_events",
    "events_url": "/v2/spaces/3e0df29e-3fea-49fa-bee4-f03ef08df397/events",
    "security_groups_url": "/v2/spaces/3e0df29e-3fea-49fa-bee4-f03ef08df397/security_groups"
  }
}