How can I check on the last update time (ex: 2025-03-03 18:59) of a certain lookup table?
Hi Sharon L., Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> đź‘‹
Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai
Hmm, I don't know enough to give you a confident answer yet. You might want to check the Mixpanel documentation for more details on managing Lookup Tables: Lookup Tables Documentation.
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
Let me check the knowledge base for you again. One moment! đź“š
To determine whether a lookup table has been successfully updated using the API, you can check the response from the API call. When you replace a lookup table using the API, a successful update will return a 200 status code, indicating that all records were successfully ingested.Here is an example of how you might use the API to replace a lookup table and check for a successful update: LBKSimport requestsLBKSdata = """id,artist,genre,is_platinum,name,num_listens,release_date,is_top_40 c994bb,Drake,Pop,True,Hotline Bling,1700000000,2015-10-18T22:00:00,true d8d949,Gipsy Kings,Flamenco,False,Bamboleo,1170000,1987-07-12T05:00:00,false a43fb8,Daft Punk,House,False,Aerodynamic,41000000,2001-03-12T07:30:00,false """LBKSid = "LOOKUP_TABLE_ID" project_id = "PROJECT_ID"LBKSresp = requests.put( f"[https://api.mixpanel.com/lookup-tables/{id}?project_id={project_id}](https://api.mixpanel.com/lookup-tables/{id}?project_id={project_id})", headers={"Content-Type": "text/csv"}, auth=(SERVICE_ACCOUNT_USER, SERVICE_ACCOUNT_PASS), data=data )LBKSif resp.status_code == 200: print("Lookup table updated successfully.") else: print(f"Failed to update lookup table. Status code: {resp.status_code}") print(resp.json())LBKS
In this example, if the response status code is 200, it indicates that the lookup table was updated successfully. If the update fails, you will receive a different status code, and the response will include details about the error, such as validation issues or authentication errors.For more information on the API and possible error responses, you can refer to the Mixpanel API documentation.
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
Let me check the knowledge base for you again. One moment! đź“š
If the API returns a 200 status code even when using a CSV with an incorrect table schema, it indicates that the request was processed, but it doesn't necessarily mean that the data was correctly ingested. To ensure the request actually succeeded, you need to check the response body for any validation errors.Unfortunately, the knowledge sources provided do not include specific instructions on verifying the update directly through the Mixpanel UI. However, you can typically verify the data by checking the contents of the lookup table in the Mixpanel UI to ensure it reflects the expected updates.For more detailed guidance, you might want to refer to the Mixpanel documentation or contact Mixpanel support for assistance: Mixpanel Support.If you have access to the Mixpanel UI, you can manually inspect the lookup table to verify that the data matches your expectations after the update. This involves navigating to the lookup table section in the Mixpanel UI and reviewing the table's contents.
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.