These are all the 1.0 APIs that have been deprecated since 23-Jan-2019. Please use the latest version of API 2.0.


Upload updated testcase file using this API method.
The value of 'type' (Campaign type) can be 'B' or 'HG'.

testcase_file :



Use downloaded csv file using download_testcase_file API.

This API method is use for upload test case file. This API is work only when campaign status is PENDING_REVIEW.
curl -H "MicroworkersApiKey:YOUR_API_KEY" -X POST "" -F "[email protected]_file.csv" 
from pprint import pprint
from MW_API import MW_API
mw_api = MW_API('YOUR_API_KEY')
res = mw_api.do_request('POST','/campaign/upload_testcase_file/B/2168e3b09815/format/json', {}, {"testcase_file" : open("testcase_file.csv","rb")})
use MW_API;
use Data::Dumper qw(Dumper);
my $mw_api = MW_API->new('api_key' => 'YOUR_API_KEY');
my $res = $mw_api->do_request('POST', '/campaign/upload_testcase_file/B/2168e3b09815/format/json', {
  "testcase_file" => {"file" =>"testcase_file.csv"
print Dumper($res);

include "includes/RESTClient.php";
define("cAPI_KEY", "YOUR_API_KEY");
define("cAPI_URL", "");
$client = new RESTClient();
$client->setUrl(cAPI_URL . "/campaign/upload_testcase_file/B/2168e3b09815/format/json");
$client->setData(array("testcase_file" => new CURLFile("testcase_file.csv")));
$response = $client->getLastResponse();
echo $response;
using System;
using MWAPI;
using System.Collections.Specialized;

public class Test{
  public static void Main (string[] args){
    MW_API MW_API_Client = new MW_API ("YOUR_API_KEY");
NameValueCollection postData = new NameValueCollection();
    postData.Add("testcase_file", "testcase_file.csv");
    string body = MW_API_Client.postRequest("/campaign/upload_testcase_file/B/2168e3b09815/format/json", postData);
    Console.WriteLine (body);


Result Format

  "status": "SUCCESS",
  "response": "Test case file successfully uploaded."
  "status": "ERROR",
  "message": "You don't have permission to access this page. Please check given parameters or contact Administrator for more details."