For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update current report

PUT /api/v1/policy-statistics/{definitionId}

Updates the configuration of the statistic definition with the specified identifier.

Authentication: Bearer token required (Authorization: Bearer <token>)

Permission: Permissions.STATISTICS_STATISTIC_CREATE


Request

Path Parameters

Parameter
Type
Required
Description

definitionId

string

Yes

Statistic definition identifier

Request Body

{
  "name": "Updated Statistics Name",
  "description": "Updated description for the statistic definition",
  "config": {
    "variables": [],
    "scores": []
  }
}
Field
Type
Required
Description

name

string

No

Human-readable name for the definition

description

string

No

Description of the definition

config

object

No

Definition configuration object


Response

Success Response

Status: 200 OK

Error Responses

Status
Description

401 Unauthorized

Missing or invalid token

403 Forbidden

Insufficient permissions

404 Not Found

Statistic definition does not exist

422 Unprocessable Entity

Invalid or missing definitionId

500 Internal Server Error

Unexpected server failure

Last updated

Was this helpful?