curl --request PUT \
--url 'https://api.unify.ai/v0/logs/derived' \
--header "Authorization: Bearer $UNIFY_KEY " \
--header 'Content-Type: application/json' \
--data '{
"project" : "eval-project" ,
"target_derived_logs" : {
"log0" : [
0 ,
1 ,
2
] ,
"log1" : {
"filter_expr" : "derived_score > 0.5"
}
} ,
"key" : "temp_plus_20" ,
"equation" : "{t:temperature} + 20" ,
"referenced_logs" : {
"other" : {
"filter_expr" : "score > 0.5"
} ,
"t" : [
1 ,
2 ,
3
]
}
} '
{
"info" : "Derived logs updated successfully!"
}
Updates multiple derived logs, identified either by a direct list of derived IDs or by
get_logs–style filters. If ‘referenced_logs’ is provided, we delete all existing
derived logs for each (log_event_id, key) group and re-insert new ones referencing
the new base logs. Finally, we recompute them.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Name of the project these derived logs belong to.
The derived logs to update, either as a list of derived_log IDs or as a set of arguments for the get_logs endpoint.
New key name for the derived entries
New equation for computing derived values
Optional new referenced logs to use for computation. Can be specified either as a list of log IDs or as a set of arguments for the get_logs endpoint.
curl --request PUT \
--url 'https://api.unify.ai/v0/logs/derived' \
--header "Authorization: Bearer $UNIFY_KEY " \
--header 'Content-Type: application/json' \
--data '{
"project" : "eval-project" ,
"target_derived_logs" : {
"log0" : [
0 ,
1 ,
2
] ,
"log1" : {
"filter_expr" : "derived_score > 0.5"
}
} ,
"key" : "temp_plus_20" ,
"equation" : "{t:temperature} + 20" ,
"referenced_logs" : {
"other" : {
"filter_expr" : "score > 0.5"
} ,
"t" : [
1 ,
2 ,
3
]
}
} '
{
"info" : "Derived logs updated successfully!"
}