Load the file and return its preview

Imports a zip file containing rules.

Imports a zip file containing rules.

POST/api/v1/schema-rules/import/file/preview
Authorization
Body

File.

string
Response

Schema rule preview.

Body
idstring
Example: "000000000000000000000001"
uuidstring
Example: "00000000-0000-0000-0000-000000000000"
name*string
Example: "Tool name"
descriptionstring
Example: "Description"
creatorstring
Example: "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001"
ownerstring
Example: "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001"
policyIdstring
Example: "000000000000000000000001"
policyTopicIdstring
Example: "0.0.1"
policyInstanceTopicIdstring
Example: "0.0.1"
statusenum
Example: "DRAFT"
DRAFTPUBLISHEDERRORACTIVE
confignullable object
Request
const response = await fetch('/api/v1/schema-rules/import/file/preview', {
    method: 'POST',
    headers: {
      "Authorization": "Bearer JWT",
      "Content-Type": "application/json"
    },
    body: JSON.stringify("text"),
});
const data = await response.json();
Response
{
  "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"
}

Last updated