Import Label configuration from a file
Imports new statistic definition from the provided zip file into the local DB.
Authorizations
Path parameters
policyIdstringRequiredExample:
Policy Id
000000000000000000000001
Body
stringOptional
Responses
200
Successful operation.
application/json
401
Unauthorized.
403
Forbidden.
500
Internal server error.
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": {}
}
PreviousRetrieve the list of components for Label configuration (schemas, policies, etc)NextExport Label configuration to a file
Last updated