How to upload files (xlsx,txt,csv) using REST components for Zapi API

Highlighted
One Star

How to upload files (xlsx,txt,csv) using REST components for Zapi API

Experts,
I need to upload files using Talend tREST component to Zephyr/JIRA. I do not know the format/syntax to give in httpbody section like the curl's ( -F "file=@myfile.txt" )

URL
?  
entityId=4783&entityType=TestStepResult

BODY
D:/TestResults/QPJ-707_Count_Mismatch.xls



I gave the full path and file name in body section. When I run, I am getting ERROR_CODE = 500.
Please help on how to give filepath/filename in the body section in tREST or any other REST components.
I do not get enough information in Zephyr/Zapi API website
Thanks,
Prakash.R

Highlighted
Employee

Re: How to upload files (xlsx,txt,csv) using REST components for Zapi API

use tFileFetch with POST and the advanced setting Upload File
Thomas Steinborn
VP Product Management

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog