Generic Resource
PEPPERI NOTIFICATION SERVICE
Actions Queue
CPI Node
TODO training
Powered By GitBook
Create and Update an Audit Log Entry
OwnerID Header MUST BE presented at every request - this will prevent manipulating the audit log (Only our internal requests which will be server side and will use our internal function which allow inserting to log without Owner UUID)
X-Pepperi-OwnerID : <the OwnerID>
This API Endpoint can only be used by Admin User - any other user type will get 401 Unauthorized HTTP Status Code
The Event's User Object id Read-Only - So that in POST and PUT it is taken from the Authorization Header
post
https://api.pepperi.com/v1.0
/audit_logs
Create an Audit Log Entry (AuditType=data)

Example of items data changed by sync

1
{
2
"UUID" : "",
3
"CreationDateTime" : "", //of the audit log ! not the data object
4
"ModificationDateTime" : "",
5
"AuditType" : "data", //OR action
6
"Event" : { "Type": "nuclus", "User" : {"InternalID" :12, "Name" :"", "Email" : ""} },
7
"SourceAuditLog" : {"UUID" : "", "AuditType": "action", "EventType" : "sync" }, //e.g: Event such as Sync or Code Job
8
"Status" : { "ID": 1, "Name": "Success" }, // { "ID": 0, "Name": "Failure" }
9
"AuditInfo":
10
{
11
"ObjectUUID" :"7b86e560-4761-421c-a04f-2d98d01d2c3b",
12
"DataModificationDateTime" :"",
13
"DataResource": "items",
14
"Action" : {"ID" :12 , "Name": "Updated",
15
"DBModified": true,
16
"NucleusModified": true,
17
"RevisedFields" :
18
[
19
{
20
"FieldID" : "TSAMyCategory",
21
"OldValue" : "Nike",
22
"NewValue" : "Adidas"
23
},
24
{
25
"FieldID" : "Description",
26
"OldValue" : "Men Shoes 1",
27
"NewValue" : "Men Shoes 2"
28
},
29
...
30
]
31
}
32
}
Copied!
put
https://api.pepperi.com/v1.0
/audit_log/{Audit Log UUID}
Update an Audit Log Entry (AuditType=data)
Please note : UUID is taken from the Path parameter - and does not need to be presented in Body - but it should raise exception only if its not = to the one in Path
Last modified 1yr ago