Skip to main content
POST
Hash a decision structure

Body

application/json

Everything that defines a decision: questions, attribute declarations, aggregations and the result. Names are unique across all three maps.

questions
object
required

System One questions, keyed by name.

result
string
required

The final feature's path, such as aggregations.band.

Required string length: 1 - 80
Examples:

"questions.asks_for_refund"

"aggregations.band"

attributes
object

Values your app supplies with each call in attribute_values. The model never sees them.

aggregations
object

Response

The structure's hashes

structure_hash
string
required
Pattern: ^sha256:[0-9a-f]{64}$
question_hashes
object
required

Each question, by name, mapped to its hash (its definition without its name). A question's hash is what feedback about it is stored against.