Logo
Profit.co's Public API Documentation

Get Audit Logs

GET https://api.profit.co/app/dao/v6/datamanagement?a=getAll&objectId=191&numResults=<NUMBER_OF_RESULTS>&startDate=<START_DATE>&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>

Read the audit log which includes the transaction history like record create, update, delete.

This method will return the audit logs from the startDate specified. Get the creationDate of the last record from data and call the API again by setting the startDate to creationDate to get the next set of records. API will return empty data indicating that no records exists after the specified startDate. Stop calling the API when results.countOfRecords < numResults.

  • actionType - Audit log type - Audit denotes that this is the entry created because of Transactional data change by the user
  • datePosted - Audit log creation time
  • eventCode - Event code denoting details of transaction performed by user
  • eventName - Event name
  • message - Event Message
  • newsFeedId - Unique Id of this record
  • objectId - Object type assocaited to this event
  • objectId2 - Object type 2 associated to this event
  • objectId3 - Object type 3 assocaited to this event
  • objectName - Object name
  • objectName2 - Object 2 name
  • objectName3 - Object 3 name
  • objectRefName - Actual object name
  • objectRefName2 - Actual object 2 name
  • objectRefName3 - Actual object 3 name
  • postingObjectId - Object type which created this event
  • postingObjectName - Name of the object type which created this event
  • postingObjectRefId - Actual ID of the object that created this event
  • postingObjectRefName - Name of the object that created this event
  • updatedBy - Who updated this event
  • createdBy - Created by user id
  • creationDate - date of creation of this record
  • lastUpdateDate - Last update of date of this record
  • lastUpdatedBy - last updated by user id

Here is the details of Profit.co audit logs. * Audit log is generated and an employee (user of profit.co) performs any operations within profit.co application. * Audit log is recorded in the databases as Posted by employee who performed particular action. * Audit log is associated with multiple objects like Objective, Key results, employee, department, Event, Task. * Each object will have: Object id, object name, object ref id, object ref name and here. * Object id - Unique ID of the object identifying the type of the object (ex: 8 for employees, 560 for Objectives, 563 for Key results). * Object name - name of the object. ex: Employee, Objective, Key Result. * Object Ref Id - actual employee id, actual object id, actual key result id - that is unique id in the system. * Object Ref name - actual Employee name, actual Objective name, actual key results name like: Improve Performance.

 

Body PARAM

Key Datatype Required Description 
a
string
objectId
number
numResults
string Integer, number of results to be returned. Max permissible value: 5000
startDate
string Required: Date from which the audit logs to be returned. Must in the yyyy-MM-dd HH:mm:ss format in the PST timezone.
apiKey
string Required: API key of your Profit.co Account
Curl
curl -X GET 'https://api.profit.co/app/dao/v6/datamanagement?a=getAll&objectId=191&numResults=<NUMBER_OF_RESULTS>&startDate=<START_DATE>&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>?a=getAll&objectId=191&numResults=<NUMBER_OF_RESULTS>&startDate=<START_DATE>&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>'

ENDPOINTS