Import Label configuration from a file

Imports new statistic definition from a zip file.

post

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

Authorizations
Path parameters
policyIdstringRequired

Policy Id

Example: 000000000000000000000001
Body
stringOptional
Responses
200
Successful operation.
application/json
post
POST /api/v1/policy-statistics/{policyId}/import/file HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 6

"text"
{
  "id": "000000000000000000000001",
  "uuid": "00000000-0000-0000-0000-000000000000",
  "name": "Tool name",
  "description": "Description",
  "creator": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
  "owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
  "topicId": "0.0.1",
  "messageId": "0000000000.000000001",
  "policyId": "000000000000000000000001",
  "policyTopicId": "0.0.1",
  "policyInstanceTopicId": "0.0.1",
  "status": "DRAFT",
  "config": {}
}

Last updated