Report TemplatesШаблоны: мои + shared

Шаблоны: мои + shared

Сохранённые наборы параметров отчёта. shared-шаблоны видны всем участникам Vault'а, менять их может только admin

curl -X GET "https://policy-engine-rest.ezig.workers.dev/api/v1/vaults/demo_vault/report-templates" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "items": [
    {
      "id": "example_string",
      "vaultId": "example_string",
      "name": "John Doe",
      "reportType": "example_string",
      "parametersJson": {},
      "isShared": true,
      "createdById": "example_string",
      "createdAt": "example_string",
      "updatedAt": "example_string"
    }
  ]
}
GET
/api/v1/vaults/{code}/report-templates
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

better-auth session token. Мобилка/сервисы. Веб использует cookie.

better-auth session token. Мобилка/сервисы. Веб использует cookie.
API Key (cookie: better-auth.session_token)
path
codestring
Required

Уникальный код Vault'а (slug)

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. better-auth session token. Мобилка/сервисы. Веб использует cookie.

path
parameterstring
Required

API Key for authentication. Provide your API key in the cookie.

Path Parameters

codestring
Required

Уникальный код Vault'а (slug)

Example:
demo_vault

Responses

itemsarray
Required