create Audit Log With Id
POST {{baseUrl}}/api/system/audit-log
Creates an audit log with the message and user name (usually an email). Audit logs should be written anytime you make changes to the FusionAuth database. When using the FusionAuth App web interface, any changes are automatically written to the audit log. However, if you are accessing the API, you must write the audit logs yourself.
Request Body
{"auditLog"=>{"id"=>"<long>", "insertInstant"=>"<long>", "insertUser"=>"<string>", "message"=>"<string>", "reason"=>"<string>"}, "eventInfo"=>{"deviceDescription"=>"<string>", "deviceName"=>"<string>", "deviceType"=>"<string>", "ipAddress"=>"<string>", "location"=>{"city"=>"<string>", "country"=>"<string>", "latitude"=>"<double>", "longitude"=>"<double>", "region"=>"<string>", "zipcode"=>"<string>", "displayString"=>"<string>"}, "os"=>"<string>", "userAgent"=>"<string>"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"auditLog":{"data":{"Lorem732":{},"sint_974":{},"irureec":{}},"id":"\u003clong\u003e","insertInstant":"\u003clong\u003e","insertUser":"\u003cstring\u003e","message":"\u003cstring\u003e","newValue":{},"oldValue":{},"reason":"\u003cstring\u003e"}}