Skip to content

Metadata Import

asaweero edited this page Aug 22, 2017 · 3 revisions

Allows the user to import metadata for the project. If REDCap works as intended, it should create a snapshot of the data dictionary before this method is called, should you import bad data.

Required Parameters

  • data: The formatted data that will be imported. Please check REDCap's API documentation for a full explanation of the formatting for your input.

Return Value

  • Returns the number of fields imported.

Method Name

    var params = {
      data: []
    };

    importInfo (params, function (err, res) {
      // error containts oprtional errors
      if (err) {
          // handle error
      }
      else {
          // res is return value
          console.log (res);
      }
    });