Retrieve all the data needed for evaluating the rules
PreviousList all the schemas and policy relevant to the rule with the specified IDNextCreate a new rule from the file
Last updated
Was this helpful?
Last updated
Was this helpful?
/schema-rules/data
curl -L \
--request POST \
--url '/api/v1/schema-rules/data' \
--header 'Authorization: Bearer JWT' \
--header 'Content-Type: application/json' \
--data '{"rules":{"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","config":{},"status":"DRAFT"},"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":[null],"type":[null],"verifiableCredential":[{}]},"status":"NEW"},"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":[null],"type":[null],"verifiableCredential":[{}]},"status":"NEW"}]}'
{
"rules": {
"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",
"config": {},
"status": "DRAFT"
},
"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": [
null
],
"type": [
null
],
"verifiableCredential": [
{}
]
},
"status": "NEW"
},
"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": [
null
],
"type": [
null
],
"verifiableCredential": [
{}
]
},
"status": "NEW"
}
]
}
Successful operation.