Chat Completions
Portkey Endpoints
Embeddings
Other APIs
Completions
Moderations
Fine-tuning
Assistants
- Assistants
- Threads
- Messages
- Runs
- Run Steps
Update a Log Export
PUT
/
logs
/
exports
/
{exportId}
from portkey_ai import Portkey
portkey = Portkey(
api_key="PORTKEY_API_KEY"
)
res = portkey.logs.exports.update(
export_id="EXPORT_ID",
workspace_id="WORKSPACE_ID",
filters={
"time_of_generation_max": "2024-07-25"
}
)
print(res)
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"total": 123,
"object": "export"
}
Authorizations
Path Parameters
Body
application/json
Response
200 - application/json
Successful response
The response is of type object
.
Was this page helpful?
from portkey_ai import Portkey
portkey = Portkey(
api_key="PORTKEY_API_KEY"
)
res = portkey.logs.exports.update(
export_id="EXPORT_ID",
workspace_id="WORKSPACE_ID",
filters={
"time_of_generation_max": "2024-07-25"
}
)
print(res)
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"total": 123,
"object": "export"
}