REDCap API Documentation
Export Logging
This method allows you to export the logging (audit trail) of all changes made to this project, including data exports, data changes, project metadata changes, modification of user rights, etc.
https://chi-redcap.dshs.texas.gov/redcap/api/
POST
To use this method, you must have API Export privileges *and* Logging privileges in the project.
Requiredtoken
The API token specific to your REDCap project and username (each token is unique to each user for each project). See the section on the left-hand menu for obtaining a token for a given project.
content
log
format
csv, json, xml [default]
OptionalreturnFormat
csv, json, xml - specifies the format of error messages. If you do not pass in this flag, it will select the default format for you passed based on the 'format' flag you passed in or if no format flag was passed in, it will default to 'xml'.
NOTE: Does not apply when importing as a background process (i.e., backgroundProcess=true). When using a background process, success:true (upon success) or success:false (upon failure) will be returned in the appropriate format (csv, json, xml).
logtype
You may choose event type to fetch result for specific event type
user
To return only the events belong to specific user (referring to existing username), provide a user. If not specified, it will assume all users.
record
To return only the events belong to specific record (referring to existing record name), provide a record. If not specified, it will assume all records. This parameter is available only when event is related to record.
dag
To return only the events belong to specific DAG (referring to group_id), provide a dag. If not specified, it will assume all dags.
beginTime
To return only the events that have been logged *after* a given date/time, provide a timestamp in the format YYYY-MM-DD HH:MM (e.g., '2017-01-01 17:00' for January 1, 2017 at 5:00 PM server time). If not specified, it will assume no begin time.
endTime
To return only records that have been logged *before* a given date/time, provide a timestamp in the format YYYY-MM-DD HH:MM (e.g., '2017-01-01 17:00' for January 1, 2017 at 5:00 PM server time). If not specified, it will use the current server time.
ReturnsList of all changes made to this project, including data exports, data changes, and the creation or deletion of users.
KEY:
Filter by event (logtype):
export = Data export,
manage = Manage/Design,
user = User or role created-updated-deleted,
record = Record created-updated-deleted,
record_add = Record created (only),
record_edit = Record updated (only),
record_delete = Record deleted (only),
lock_record = Record locking & e-signatures,
page_view = Page Views