Web API: Importfile

From QPR ProcessAnalyzer Wiki
Revision as of 18:22, 27 May 2020 by Ollvihe (talk | contribs) (Created page with "The '''importfile''' operation imports data from a file to QPR ProcessAnalyzer datatables. HTTP request header '''Authorization''' with value '''Bearer <access token>''' need...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The importfile operation imports data from a file to QPR ProcessAnalyzer datatables.

HTTP request header Authorization with value Bearer <access token> needs to be in place to identify the session.

Url: POST /api/importfile?param1=value1&param2=value2&param3=value3
Content-Type: multipart/form-data
Body: file contents

Following parameters can be defined:

  • fileType (string): Defines the format of the imported file. Options are csv, pacm and xes.
  • importMode (string): Defines what kind of data is imported. Options are datatable, events and cases. Used when FileType=csv
  • projectId (string): Project id. Used when creating a new model or new data table.
  • newObjectName (string): Model or datatable name. Used when creating a new model or new datatable.
  • objectId (integer): Model or datatable id. Used when importing data to an existing model or datatable.
  • csvDelimiter (string): Delimiter character for CSV format.
  • csvQualifier (string): Character used to enclose strings.
  • csvTimeFormat (string): The date format to use when interpreting date values.
  • csvStartImportFromLine:
  • append (boolean): When true, the possible previous data is preserved. When importing to datatable with append=0, columns are reset.
  • isCompressed (boolean): When true, input stream is zipped (gzip). Always true if FileType=pacm.