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


Restart campaign and add positions.
The value of 'type' (Campaign type) can be 'B' or 'HG'.

positions_to_add :



number of position you want to add. If you provide positions_to_add is 2 and campaign "number_of_worker_on_same_task" is 3 then it will add 6 positions internally.

csvfile :



CSV file if variable is present in your campaign.

curl -H "MicroworkersApiKey:YOUR_API_KEY" -X POST "" -F "positions_to_add=10" -F "[email protected]/var/csvfiles/sample.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/restart_campaign/B/2168e3b09815/format/json', {"positions_to_add" : "10"}, {"csvfile" : open("/var/csvfiles/sample.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/restart_campaign/B/2168e3b09815/format/json', {
  "positions_to_add" => "10", "csvfile" => {"file" =>"/var/csvfiles/sample.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/restart_campaign/B/2168e3b09815/format/json");
$client->setData(array("positions_to_add" => "10", "csvfile" => new CURLFile("/var/csvfiles/sample.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("positions_to_add", "10");
     postData.Add("csvfile", "/var/csvfiles/sample.csv");
    string body = MW_API_Client.postRequest("/campaign/restart_campaign/B/2168e3b09815/format/json", postData);
    Console.WriteLine (body);


Result Format

  "status": "SUCCESS",
  "response": "Campaign successfully restarted."
  "status": "ERROR",
  "message": "Invalid CSV File."