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

/template/delete

Delete your own template using this API method.

template_id :

required

Text

Template Id must be starts with "T".

This API method is use for deleting template.
curl -H "MicroworkersApiKey:YOUR_API_KEY" -X DELETE "https://ttv.microworkers.com/api/template/delete/format/json" -d "template_id=T54f9518a418e2"
from pprint import pprint
from MW_API import MW_API
mw_api = MW_API('YOUR_API_KEY')
res = mw_api.do_request('DELETE','/template/delete/format/json', {"template_id" : "T54f9518a418e2"}, {})
pprint(res)
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('DELETE', '/template/delete/format/json', {
  "template_id" => "T54f9518a418e2"
});
print Dumper($res);
<?php

include "includes/RESTClient.php";
define("cAPI_KEY", "YOUR_API_KEY");
define("cAPI_URL", "https://ttv.microworkers.com/api");
$client = new RESTClient();
$client->setApiKey(cAPI_KEY);
$client->setUrl(cAPI_URL . "/template/delete/format/json");
$client->setMethod("DELETE");
$client->setData(array("template_id" => "T54f9518a418e2"));
$client->execute();
$response = $client->getLastResponse();
$client->resetClient();
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("template_id", "T54f9518a418e2");
    
    string body = MW_API_Client.deleteRequest("/template/delete/format/json", postData);
    Console.WriteLine (body);
  }
}

Definition


Result Format

{
  "status": "SUCCESS",
  "response": "Template deleted successfully."
}
{
  "status": "ERROR",
  "message": "You don't have permission to access this page. Please check given parameters or contact Administrator for more details."
}