Search
Close this search box.

< / >

APIs Configuration

22. Delete Mr. Wizard training file

URL:

https://wv{{wolkvox_server}}.wolkvox.com/api/v2/configuration.php?api=delete_file

Description:

This API allows you to delete training files uploaded to Mr. Wizard.

Benefits:

Optimize Mr. Wizard’s training management by enabling quick deletion of unwanted or outdated training files through an API integration. This improves operational efficiency and ensures that the AI’s responses are based on up-to-date data.

¿Cómo funciona?

  • This API is consumed using the DELETE  method.
  • The API body must be raw.
  • To consume this API, replace {{wolkvox_server}} in the URL with the operation server’s name.
  • You must use the wolkvox-token: {{wolkvox-token}} header for authorization.
  • Please note that the same token cannot be used simultaneously. Therefore, it is recommended to schedule the consumption of the next API only after the previous one has been successfully executed.
  • In terms of time, you can consume the information every 5 minutes to monitor your operation.
  • Consumption limit for downloaded records: 60,000 records.
  • Upload limit per consumption: 10,000 records.
  • Date query limit: 31 days.
  • Result size limit: 256 MB.
  • API consumption time limit: 60 seconds.
  • Concurrent token consumption limit: 2 simultaneous requests.
  • Daily token limit: Number of licenses multiplied by 1,000 tokens per day.

Request

NAMEDESCRIPTIONTYPE
wolkvox-token
Wolkvox Manager access token
String
filename
Assigned file name in Mr. Wizard
string

Response

NAMEDESCRIPTIONTYPE
code
Response code
int
errorError.String
msg
Response description
String
data
Array of objects containing notification information
String
Possible response codes
				
					$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://wv{{wolkvox_server}}.wolkvox.com/api/v2/configuration.php?api=delete_file',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'DELETE',
  CURLOPT_POSTFIELDS =>'{
    "filename": ""
}',
  CURLOPT_HTTPHEADER => array(
    'wolkvox-token: {{wolkvox-token}}',
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

				
			

RESPONSE

				
					{
    "code": "201",
    "error": null,
    "msg": "File delete  successfully"
}
				
			
We use cookies, if you continue browsing we will assume that you agree. You can read more about the use of cookies in our privacy policies and treatment of personal data