Create a new Statistics Assessment based on the Statistics Definition

Creates a new statistic assessment.

Creates a new statistic assessment.

post

/policy-statistics/{definitionId}/assessment

Authorizations
Path parameters
definitionIdstringrequired

Statistic Definition Identifier

Example: 000000000000000000000001
Body
idstring
Example: 000000000000000000000001
definitionIdstring
Example: 000000000000000000000001
policyIdstring
Example: 000000000000000000000001
policyTopicIdstring
Example: 0.0.1
policyInstanceTopicIdstring
Example: 0.0.1
topicIdstring
Example: 0.0.1
creatorstring
Example: #did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001
ownerstring
Example: #did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001
messageIdstring
Example: 0000000000.000000001
targetstring
Example: 0000000000.000000001
relationshipsstring[]
Example: ["0000000000.000000001"]
documentobject | nullable
Responses
curl -L \
  --request POST \
  --url '/api/v1/policy-statistics/{definitionId}/assessment' \
  --header 'Authorization: Bearer JWT' \
  --header 'Content-Type: application/json' \
  --data '{
    "id": "000000000000000000000001",
    "definitionId": "000000000000000000000001",
    "policyId": "000000000000000000000001",
    "policyTopicId": "0.0.1",
    "policyInstanceTopicId": "0.0.1",
    "topicId": "0.0.1",
    "creator": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
    "owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
    "messageId": "0000000000.000000001",
    "target": "0000000000.000000001",
    "relationships": [
      "0000000000.000000001"
    ],
    "document": {}
  }'
{
  "id": "000000000000000000000001",
  "definitionId": "000000000000000000000001",
  "policyId": "000000000000000000000001",
  "policyTopicId": "0.0.1",
  "policyInstanceTopicId": "0.0.1",
  "topicId": "0.0.1",
  "creator": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
  "owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
  "messageId": "0000000000.000000001",
  "target": "0000000000.000000001",
  "relationships": [
    "0000000000.000000001"
  ],
  "document": {}
}

Last updated