Retrieve all data from documents that needed for displaying the formula
Last updated
Last updated
/formulas/data
000000000000000000000001
000000000000000000000001
000000000000000000000001
000000000000000000000001
curl -L \
--request POST \
--url '/api/v1/formulas/data' \
--header 'Authorization: Bearer JWT' \
--header 'Content-Type: application/json' \
--data '{
"policyId": "000000000000000000000001",
"schemaId": "000000000000000000000001",
"documentId": "000000000000000000000001",
"parentId": "000000000000000000000001"
}'
{
"document": {
"id": "000000000000000000000001",
"policyId": "000000000000000000000001",
"hash": "hash",
"signature": 0,
"tag": "Block tag",
"type": "Document type",
"createDate": "1900-01-01T00:00:00.000Z",
"updateDate": "1900-01-01T00:00:00.000Z",
"owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
"document": {
"id": "00000000-0000-0000-0000-000000000000",
"proof": {},
"@context": [
"text"
],
"type": [
"text"
],
"verifiableCredential": [
{}
]
},
"status": "NEW"
},
"formulas": [
{
"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",
"messageId": "0000000000.000000001",
"policyId": "000000000000000000000001",
"policyTopicId": "0.0.1",
"policyInstanceTopicId": "0.0.1",
"config": {},
"status": "DRAFT"
}
],
"relationships": [
{
"id": "000000000000000000000001",
"policyId": "000000000000000000000001",
"hash": "hash",
"signature": 0,
"tag": "Block tag",
"type": "Document type",
"createDate": "1900-01-01T00:00:00.000Z",
"updateDate": "1900-01-01T00:00:00.000Z",
"owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
"document": {
"id": "00000000-0000-0000-0000-000000000000",
"proof": {},
"@context": [
"text"
],
"type": [
"text"
],
"verifiableCredential": [
{}
]
},
"status": "NEW"
}
],
"schemas": [
{
"id": "000000000000000000000001",
"uuid": "00000000-0000-0000-0000-000000000000",
"name": "Schema name",
"description": "Description",
"iri": "00000000-0000-0000-0000-000000000000",
"topicId": "0.0.1",
"version": "1.0.0",
"owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
"messageId": "0000000000.000000001",
"documentURL": "ipfs://AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"contextURL": "ipfs://AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"document": {},
"context": {},
"entity": "POLICY",
"status": "DRAFT",
"category": "POLICY"
}
]
}
Successful operation.