Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NameDescriptionExample
file-to-uploadPath to the excel file containing Table Data/home/username/fixtures.xlsx
replaceTrue if the existing tables should be deleted, otherwise Falsefalse
asyncIf true, the upload will be queued and processed in the background. A status URL will be provided to view progressfalse

Sample cURL request:

Code Block
languagebash
curl -v https://www.commcarehq.org/a/myproject/fixtures/fixapi/ -u user@domain.com:password
     -F "file-to-upload=@fixtures.xlsx"
     -F "replace=true"

...

NameDescriptionExample
code

200: Success

402: Warning

405: Fail

402
messageWarning or Failure message"Error processing your file. Submit a valid (.xlsx) file"
status_url

URL for the progress of the lookup table upload

Only applicable when async=true


https://www.commcarehq.org/a/demo/fixtures/fixapi/status/dl-2998e6834a654ab5ba74f372246caa75/