Endpoint :
POST
https://gateway.jojonomic.com/v1/nocode/record/audit_trail
Payload :
{
"form_data_id": "oVA9B1n7R",
"page": 1,
"limit": 10,
"filter": {
"record_id": "-S-oqT4ng",
"action": "CREATE",
"timestamp": {"$between":[1618128286057,1630383536952]}
},
"sort": {"timestamp": -1}
}
Keterangan Payload :
- Jika ingin melihat log dari form_data_id saja maka params filter dihapus
- Jika ingin melihat log dari record tertentu maka params filter.action dihapus
- Jika ingin melihat log dari record dan action tertentu paka payload lengkap seperti di atas
Response :
{
"data": [
{
"action": "CREATE",
"columns": [
"id_kinerja",
"task",
"status",
"karyawan"
],
"company_id": 2737,
"email": "jojoqa@mailinator.com",
"first_name": "Stephani",
"id": "tvaoqo47g",
"last_name": "Quality Assurance",
"new_data": {
"id_kinerja": "-S-oqT4ng",
"karyawan": {
"company_user_id": 132435,
"email": "ikatesting@mailinator.com",
"name": "Ika Testing",
"photo": "https://jojo-receipt-new.s3.ap-southeast-1.amazonaws.com/2737/60ec1bb108a4d-Bukit-Karang-numpang-sukabumi.jpg"
},
"status": "Backlog",
"task": "test task 1"
},
"old_data": null,
"photo_url": "https://jojo-receipt-qa.s3.ap-southeast-1.amazonaws.com/414/60afce996aaa7-CAP3786350965693751275.jpg",
"record_id": "-S-oqT4ng",
"timestamp": 1630382827821,
"user_company_id": 14140
}
],
"error": false,
"message": "Success Fetch Log Audit Trail Record from Form Data ID: oVA9B1n7R"
}