Create a new rule from the file
Imports new rules from the provided zip file into the local DB.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
policyIdstringRequiredExample:
Policy Id
000000000000000000000001Body
stringOptional
Responses
200
Successful operation.
application/json
idstringOptionalExample:
000000000000000000000001uuidstringOptionalExample:
00000000-0000-0000-0000-000000000000namestringRequiredExample:
Tool namedescriptionstringOptionalExample:
DescriptioncreatorstringOptionalExample:
#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001ownerstringOptionalExample:
#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001policyIdstringOptionalExample:
000000000000000000000001policyTopicIdstringOptionalExample:
0.0.1policyInstanceTopicIdstringOptionalExample:
0.0.1statusstring · enumOptionalExample:
DRAFTPossible values: configobject · nullableOptional
401
Unauthorized.
403
Forbidden.
500
Internal server error.
application/json
post/schema-rules/{policyId}/import/file
POST /api/v1/schema-rules/{policyId}/import/file HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
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",
"policyId": "000000000000000000000001",
"policyTopicId": "0.0.1",
"policyInstanceTopicId": "0.0.1",
"status": "DRAFT",
"config": {}
}PreviousRetrieve all the data needed for evaluating the rules
NextLoad the file and return its preview
Was this helpful?