- Retrieves the list of arms (study branches) in a longitudinal REDCap project. Each arm is returned with its arm number and name, sorted by arm number.
- Creates or modifies arms in a longitudinal REDCap project. With `override=0` arms are added or renamed without deleting others; with `override=1` all existing arms (and their events and data) are deleted and replaced with the arms supplied.
- Removes one or more arms from a longitudinal REDCap project by arm number. Deleting an arm also permanently deletes every event in that arm and all data collected under those events.
- Returns every Data Access Group defined in the project with its display name, unique group name and numeric group ID. Read-only — it modifies no project data.
- Returns the mapping of users to Data Access Groups in the project, pairing each username with the unique group name of their assigned DAG. An empty group name means the user is not in any DAG and has all-DAG access.
- Creates new Data Access Groups or updates existing ones. A record with a blank unique_group_name creates a DAG (REDCap generates the unique name from the display name); a record carrying an existing unique_group_name renames that DAG.
- Assigns users to Data Access Groups by unique group name, or removes a user from all DAGs by passing an empty group name (which grants all-DAG access). Several users can be assigned in one call.
- Switches the calling API user's own active Data Access Group to another DAG enabled for them in the project's DAG Switcher, or to [No Assignment] (the all-DAGs view). The switch changes their actual DAG assignment in the project, not just the current call.
- Permanently removes one or more Data Access Groups from the project, identified by their unique_group_name values. The DAG definition is deleted; users and records assigned to it are not deleted but lose the DAG association.
- Retrieves the list of events (timepoints or phases within an arm) in a longitudinal REDCap project, optionally filtered to specific arms.
- Creates or modifies events in a longitudinal REDCap project. With `override=0` events are added or modified without deleting others; with `override=1` all existing events (and the record data in them) are deleted and replaced with the events supplied.
- Removes one or more events from a longitudinal REDCap project, identified by their unique event names, together with all data stored in those events.
- Downloads a single file from the project-level File Repository by its doc_id, returned as base64-encoded content.
- Lists everything one level inside a folder of the project File Repository - sub-folders, each with its own folder_id, and files, each with its own doc_id. Without folder_id it lists the top level of the File Repository.
- Creates a new folder in the project-level File Repository and returns its folder_id. The folder can optionally be nested under an existing folder and restricted to a single Data Access Group and/or User Role. It creates directory structure only, never file content.
- Uploads a single file into the project-level File Repository, optionally into an existing sub-folder. Supply the file as base64-encoded content; it is sent to REDCap as multipart form data.
- Soft-deletes a single file from the project-level File Repository by its doc_id, moving it to the project File Repository Recycle Bin rather than destroying it immediately.
- Downloads a file stored in a record-level file-upload field, returned as base64-encoded content. Also works for Signature fields, whose image comes back as a PNG.
- Uploads a file into a record-level file-upload field on an existing record. Supply the file as base64-encoded content; it is sent to REDCap as multipart form data.
- Removes the file stored in a record-level file-upload field, leaving the field empty. Also works for Signature fields (file-upload fields with the signature validation type), including the enhanced signature field type added in REDCap 17.3+.
- Retrieves the mapping of instruments (forms) to events in a longitudinal REDCap project, showing which instruments are presented at each event. Optionally filtered to specific arms.
- Generates a PDF of one or more data collection instruments, blank or populated with a record's data — the same PDF offered by the web interface. Returned as base64-encoded content.
- Retrieves the list of all instruments (forms) defined in a REDCap project, each with its unique name and display label. A lightweight way to discover a project instrument structure without downloading the full data dictionary.
- Creates or modifies the mapping of instruments (forms) to events in a longitudinal REDCap project, controlling which instruments are presented at each event. The import replaces the entire mapping structure in every arm.
- Retrieves audit trail entries from a project's activity log - data exports, imports, record edits and deletions, user events and system changes - with optional filters on event type, username, record, DAG and a server-time date range.
- Returns the export/import-specific version of field names for all fields (or a single field) in a project. Its primary purpose is to handle checkbox fields, whose export names take the form field_name___coded_value.
- Retrieves the complete data dictionary (metadata) for a REDCap project - all fields, instruments, field types, validation rules, branching logic and other configuration details. Optionally filtered to specific fields and/or instruments.
- Creates or replaces the data dictionary (metadata) of a REDCap project - adding or updating fields, forms, validation rules and branching logic. The import replaces the whole dictionary, so any field left out is removed from the project.
- Retrieves the project's metadata and configuration settings — title, production status, longitudinal and survey flags, PI details and other project-level attributes — without exporting any records or instrument designs. Returns a single item covering all project-level configuration fields.
- Exports the entire project — records, events, arms, instruments, fields and project attributes — as a single CDISC ODM XML string (ODM version 1.3.1), suitable for cloning the project on the same or another REDCap server or importing into another ODM-compatible system.
- Returns the version number of the REDCap instance as a bare plain-text string (for example 17.6.5). The simplest REDCap API method — it takes no parameters beyond token and content and is useful for verifying connectivity and for version-gating version-specific API calls.
- Creates one new REDCap project from scratch, or from a complete exported project design supplied as CDISC ODM XML in the optional odm parameter.
- Updates project-level settings on an existing project — title, purpose, PI information, longitudinal and survey flags and more. Supports partial updates; fields omitted from the payload are left unchanged. NOTE - the content value is 'project_settings', NOT 'project'.
- Reads record data from a REDCap project — the primary way to pull entered study data. Returns all or a subset of records, fields, instruments and events as JSON, with raw coded values or choice labels.
- Returns what the next record ID would be if a new record were created right now, by finding the current maximum numerical record ID in the project and incrementing it by one. It does not create or reserve a record.
- Writes record data into a REDCap project, creating new records or updating existing ones from a JSON payload. Overwrite behaviour, auto-numbering and synchronous versus background processing are controlled by parameters.
- Triggers the randomization of an existing record against a specific randomization definition, performing the same action as randomizing manually in the REDCap UI. Requires the record to exist with all stratification fields filled in.
- Changes the record ID of an existing record while preserving all of its data, history and relationships. Useful when consolidating projects, renumbering records or correcting mistaken IDs.
- Permanently deletes records or parts of records from a REDCap project. Can remove whole records, a single instrument's data for a record, an event's data in a longitudinal project, a single repeating instance, or records within one arm.
- Retrieves the list of instruments and events that are configured as repeating in a project. It returns only the repeating ones, not every instrument, and a blank `form_name` marks a row as a repeating event rather than a repeating instrument.
- Configures which instruments and events in a project are designated as repeating. It does not import record data — it replaces the project's entire repeating configuration with the set supplied in `data`.
- Runs a saved REDCap report by its report ID and returns its record-level data as JSON, using the field selection, filtering and ordering configured when the report was built.
- Returns the short alphanumeric survey access code for a specific record and survey instrument, which a participant can type at the REDCap survey login page instead of opening a full survey URL.
- Generates the unique, record-specific survey URL for a given record and survey instrument, for distribution by email, SMS or any other channel. The URL is stable, so repeated calls for the same record, instrument, event and repeat instance return the same link.
- Retrieves the survey participant list for one survey-enabled instrument, returning each participant's contact details, invitation status, response status, access code and direct survey link. Useful for tracking invitation delivery, monitoring response rates and pulling per-participant links in bulk.
- Returns the unique survey queue URL for a record, which presents every survey whose queue conditions are met in a single guided workflow. There is one non-expiring queue link per record, so repeated calls return the same URL.
- Returns the unique Save and Return Later code that lets a respondent resume an incomplete survey response from its last saved point. The code can be retrieved before the respondent has started, and is sent to the respondent alongside the survey link rather than embedded in it.
- Returns the current mapping of users to the user roles they are assigned to. Every project user is listed; users who are not in a role appear with a blank unique_role_name.
- Returns every custom user role defined in the project with its system ID, human-readable label and full set of permission flags, including per-instrument form and data export rights. Always returns all roles — there is no filter parameter.
- Assigns users to existing user roles, or removes them from their current role by passing an empty unique_role_name. A DAG can optionally be set in the same record.
- Creates new custom user roles or updates existing ones. A record with a blank unique_role_name creates a role; a record carrying an existing unique_role_name updates that role's label and permissions.
- Permanently removes one or more custom user roles from the project, identified by their unique_role_name system IDs. Role deletion cannot be undone.
- Returns every user in the project with their profile fields and full set of permission flags, including per-instrument form rights and per-instrument data export rights. There is no filter parameter — the method always returns the whole visible user list.
- Adds existing REDCap system users to the project and sets their permissions, or updates the permissions of users already in the project. It does not create REDCap accounts — the username must already exist in the REDCap system.
- Removes one or more users from the project by username. The users' REDCap system accounts are not deleted, only their assignment to this project, along with their project API token, user role assignment and Data Access Group assignment.
No matching actions