update_log_export
Update an existing log export configuration before or between runs, changing workspace, maximum generation time, and requested fields. Use it to revise export definitions on Enterprise Portkey plans.
Instructions
Update an existing log export configuration before or between export runs. Only workspace_id, time_of_generation_max, and requested_fields can change after creation, so use get_log_export to review the current job and start_log_export after the definition is ready. Enterprise-gated. Returns 403 on non-Enterprise Portkey plans.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"export_id": "<export_id>"
},
"name": "update_log_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| export_id | Yes | The unique ID of the log export to update | |
| workspace_id | No | Workspace ID for the export | |
| requested_fields | No | Fields to include in export: id, trace_id, created_at, request, response, is_success, ai_org, ai_model, req_units, res_units, total_units, request_url, cost, cost_currency, response_time, response_status_code, mode, config, prompt_slug, metadata | |
| time_of_generation_max | No | Maximum time filter in date format (e.g., '2024-07-25' or ISO 8601) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Call succeeded | |
| data | No | Success payload | |
| error | No | Failure details |