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

Policy Statistics

Return a list of all statistic definitions.

get

Returns a paginated list of statistic definitions owned by the current user. Optionally filter by policy instance topic ID.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
pageIndexnumberOptional

The number of pages to skip before starting to collect the result set

Example: 0
pageSizenumberOptional

The numbers of items to return

Example: 20
policyInstanceTopicIdstringOptional

Policy Instance Topic Id

Example: 0.0.6046379
Responses
get
/policy-statistics

Creates a new statistic definition.

post

Creates a new statistic definition linked to a policy. Defines metrics and rules for collecting and aggregating policy document data.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
idstringOptionalExample: 69aeb71ef8c5b278e3bab4e5
uuidstringOptionalExample: 9db028d2-03ad-4d49-a178-cf4b67f8c147
namestringRequiredExample: Tool name
descriptionstringOptionalExample: Description
creatorstringOptionalExample: did:hedera:testnet:Cvzp5kKVUuipBCQjcF54fBjdicvaKsB8zHeQ6Qq22U2Z_0.0.8200599
ownerstringOptionalExample: did:hedera:testnet:Cvzp5kKVUuipBCQjcF54fBjdicvaKsB8zHeQ6Qq22U2Z_0.0.8200599
topicIdstringOptionalExample: 0.0.6046379
messageIdstringOptionalExample: 1773670900.819264517
policyIdstringOptionalExample: 69aeb71ef8c5b278e3bab4e5
policyTopicIdstringOptionalExample: 0.0.6046379
policyInstanceTopicIdstringOptionalExample: 0.0.6046379
statusstring · enumOptionalExample: DRAFTPossible values:
Responses
post
/policy-statistics

Retrieves statistic definition.

get

Retrieves statistic definition for the specified ID.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
definitionIdstringRequired

Statistic Definition Identifier

Example: 69aeb71ef8c5b278e3bab4e5
Responses
get
/policy-statistics/{definitionId}

Updates statistic definition.

put

Updates statistic definition configuration for the specified statistic ID.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
definitionIdstringRequired

Statistic Definition Identifier

Example: 69aeb71ef8c5b278e3bab4e5
Body
idstringOptionalExample: 69aeb71ef8c5b278e3bab4e5
uuidstringOptionalExample: 9db028d2-03ad-4d49-a178-cf4b67f8c147
namestringRequiredExample: Tool name
descriptionstringOptionalExample: Description
creatorstringOptionalExample: did:hedera:testnet:Cvzp5kKVUuipBCQjcF54fBjdicvaKsB8zHeQ6Qq22U2Z_0.0.8200599
ownerstringOptionalExample: did:hedera:testnet:Cvzp5kKVUuipBCQjcF54fBjdicvaKsB8zHeQ6Qq22U2Z_0.0.8200599
topicIdstringOptionalExample: 0.0.6046379
messageIdstringOptionalExample: 1773670900.819264517
policyIdstringOptionalExample: 69aeb71ef8c5b278e3bab4e5
policyTopicIdstringOptionalExample: 0.0.6046379
policyInstanceTopicIdstringOptionalExample: 0.0.6046379
statusstring · enumOptionalExample: DRAFTPossible values:
Responses
put
/policy-statistics/{definitionId}

Deletes the statistic definition.

delete

Deletes the statistic definition with the provided ID.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
definitionIdstringRequired

Statistic Definition Identifier

Example: 69aeb71ef8c5b278e3bab4e5
Responses
delete
/policy-statistics/{definitionId}

Publishes statistic definition.

put

Publishes statistic definition for the specified statistic ID.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
definitionIdstringRequired

Statistic Definition Identifier

Example: 69aeb71ef8c5b278e3bab4e5
Responses
put
/policy-statistics/{definitionId}/publish

Retrieves statistic relationships.

get

Retrieves statistic relationships for the specified ID.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
definitionIdstringRequired

Statistic Definition Identifier

Example: 69aeb71ef8c5b278e3bab4e5
Responses
get
/policy-statistics/{definitionId}/relationships

Return a list of all documents.

get

Returns all documents.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
definitionIdstringRequired

Statistic Definition Identifier

Example: 69aeb71ef8c5b278e3bab4e5
Query parameters
pageIndexnumberOptional

The number of pages to skip before starting to collect the result set

Example: 0
pageSizenumberOptional

The numbers of items to return

Example: 20
Responses
get
/policy-statistics/{definitionId}/documents

Return a list of all statistic assessment.

get

Returns all statistic assessment.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
definitionIdstringRequired

Statistic Definition Identifier

Example: 69aeb71ef8c5b278e3bab4e5
Query parameters
pageIndexnumberOptional

The number of pages to skip before starting to collect the result set

Example: 0
pageSizenumberOptional

The numbers of items to return

Example: 20
Responses
get
/policy-statistics/{definitionId}/assessment

Creates a new statistic assessment.

post

Creates a new statistic assessment.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
definitionIdstringRequired

Statistic Definition Identifier

Example: 69aeb71ef8c5b278e3bab4e5
Body
idstringOptionalExample: 69aeb71ef8c5b278e3bab4e5
definitionIdstringOptionalExample: 69aeb71ef8c5b278e3bab4e5
policyIdstringOptionalExample: 69aeb71ef8c5b278e3bab4e5
policyTopicIdstringOptionalExample: 0.0.6046379
policyInstanceTopicIdstringOptionalExample: 0.0.6046379
topicIdstringOptionalExample: 0.0.6046379
creatorstringOptionalExample: did:hedera:testnet:Cvzp5kKVUuipBCQjcF54fBjdicvaKsB8zHeQ6Qq22U2Z_0.0.8200599
ownerstringOptionalExample: did:hedera:testnet:Cvzp5kKVUuipBCQjcF54fBjdicvaKsB8zHeQ6Qq22U2Z_0.0.8200599
messageIdstringOptionalExample: 1773670900.819264517
targetstringOptionalExample: 1773670900.819264517
relationshipsstring[]OptionalExample: ["1773670900.819264517"]
Responses
post
/policy-statistics/{definitionId}/assessment

Retrieves statistic assessment.

get

Retrieves statistic assessment for the specified ID.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
definitionIdstringRequired

Statistic Definition Identifier

Example: 69aeb71ef8c5b278e3bab4e5
assessmentIdstringRequired

Statistic Assessment Identifier

Example: 69aeb71ef8c5b278e3bab4e5
Responses
get
/policy-statistics/{definitionId}/assessment/{assessmentId}

Retrieves assessment relationships.

get

Retrieves assessment relationships for the specified ID.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
definitionIdstringRequired

Statistic Definition Identifier

Example: 69aeb71ef8c5b278e3bab4e5
assessmentIdstringRequired

Statistic Assessment Identifier

Example: 69aeb71ef8c5b278e3bab4e5
Responses
get
/policy-statistics/{definitionId}/assessment/{assessmentId}/relationships

Imports new statistic definition from a zip file.

post

Imports new statistic definition from the provided zip file into the local DB.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
policyIdstringRequired

Policy Id

Example: 69aeb71ef8c5b278e3bab4e5
Body
stringOptional
Responses
post
/policy-statistics/{policyId}/import/file

Returns a zip file containing statistic definition.

get

Returns a zip file containing statistic definition.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
definitionIdstringRequired

Statistic Definition Identifier

Example: 69aeb71ef8c5b278e3bab4e5
Responses
get
/policy-statistics/{definitionId}/export/file

Imports a zip file containing statistic definition.

post

Imports a zip file containing statistic definition.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
stringOptional
Responses
post
/policy-statistics/import/file/preview

Last updated