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


Set minimum success rate using this API method.
The value of 'type' (Campaign type) can be 'B' or 'HG'.

success_rate :



Success Rate value must be inbetween 0 to 100.

This API method is use for set minimum success rate.
curl -H "MicroworkersApiKey:YOUR_API_KEY" -X PUT "" -d "success_rate=20"
from pprint import pprint
from MW_API import MW_API
mw_api = MW_API('YOUR_API_KEY')
res = mw_api.do_request('PUT','/campaign/set_minimum_success_rate/B/2168e3b09815/format/json', {"success_rate" : 20}, {})
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('PUT', '/campaign/set_minimum_success_rate/B/2168e3b09815/format/json', {
  "success_rate" => 20
print Dumper($res);

include "includes/RESTClient.php";
define("cAPI_KEY", "YOUR_API_KEY");
define("cAPI_URL", "");
$client = new RESTClient();
$client->setUrl(cAPI_URL . "/campaign/set_minimum_success_rate/B/2168e3b09815/format/json");
$client->setData(array("success_rate" => 20));
$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("success_rate", 20);
    string body = MW_API_Client.putRequest("/campaign/set_minimum_success_rate/B/2168e3b09815/format/json", postData);
    Console.WriteLine (body);


Result Format

  "status": "SUCCESS",
  "response": "Success Rate successfully set."
  "status": "ERROR",
  "message": "TTVAPI-E0004:TTVCampaign-E0014:Invalid value provided for Success Rate"