Deleting Microtasks
If something changes within your application and you no longer need a microtask, you can delete it.
To delete a Microtask, you must know its ID number. Let's pretend that the ID number is 1234. You would make a request to the '/api/task/1234' endpoint using the DELETE request type.
PHP Curl Examplefunction HTTP_Delete($path, $api_token) { $headers = array('Accept: application/json', "Authorization: Bearer ".$api_token); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $path); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); $result = curl_exec($ch); curl_close($ch); return json_decode($result); } $response = HTTP_Delete('https://www.t4sk.dev/api/task/1234', $api_token);
Previous
Updating Microtasks
Updating Microtasks
Navigation