curl --request PUT \
--url 'https://api.unify.ai/v0/logs' \
--header "Authorization: Bearer $UNIFY_KEY" \
--header 'Content-Type: application/json' \
--data '{
"ids": [
123,
456,
789
],
"context": "experiment1/trial1",
"params": {
"explicit_types": {
"system-prompt": {
"mutable": true,
"type": "str"
}
},
"function_definition": "...",
"system-prompt": "..."
},
"entries": {
"explicit_types": {
"input": {
"mutable": true,
"type": "Image"
}
},
"input": "...",
"score-test-1": "..."
},
"overwrite": false
}'
{
"info": "Logs updated successfully!"
}
Updates multiple logs with the provided entries. Each entry will be either added
or overridden in the specified logs.
A dictionary of “explicit_types” can be passed as part of the entries
.
If present, it will override the inferred type of any matching key in all logs.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
List of log IDs to update with new or overriding entries.
Optional context path to update for the logs. Can use ’/’ for nested contexts (e.g. ‘training/batch1’).
Dictionary or list of dictionaries of key-value parameter pairs to add or update in the logs.
Dictionary or list of dictionaries of key-value entry pairs to add or update in the logs.
Whether to overwrite existing logs
curl --request PUT \
--url 'https://api.unify.ai/v0/logs' \
--header "Authorization: Bearer $UNIFY_KEY" \
--header 'Content-Type: application/json' \
--data '{
"ids": [
123,
456,
789
],
"context": "experiment1/trial1",
"params": {
"explicit_types": {
"system-prompt": {
"mutable": true,
"type": "str"
}
},
"function_definition": "...",
"system-prompt": "..."
},
"entries": {
"explicit_types": {
"input": {
"mutable": true,
"type": "Image"
}
},
"input": "...",
"score-test-1": "..."
},
"overwrite": false
}'
{
"info": "Logs updated successfully!"
}