Folder Analyses [DELETE] Method (DELETE)

Folder Analyses [DELETE] method is used to delete a single analysis

Additional Request Parameters.

  • analyse_id - unique identifier of the target analysis (in the request headline).

Request Examples.

Example of running the Folder Analyses [DELETE] method in Postman:

Examples of DELETE request syntax using Folder Analyses [DELETE] method with following parameters:

  • analysis id «555c97c2-d8df-4762-85d4-1130922cb074».

HTTP

Bash

Python

php

Java


DELETE /api/analyses/555c97c2-d8df-4762-85d4-1130922cb074 HTTP/1.1
Host: api-d.oz-services.ru
X-Forensic-Access-Token: 0ccbdb4627c9d07c6c5b8f6e6cca44b5f8cb0c54ad7659098fa336240d494b0f9035e14bc42fc461224a9719f105e41026fed0f6f14188d9107b8c3d697a0cb1
Content-Type: application/json
cache-control: no-cache
Postman-Token: fddaf616-08a9-4e0f-9361-5cf4a409cbb8


curl -X DELETE \
  https://api-d.oz-services.ru/api/analyses/555c97c2-d8df-4762-85d4-1130922cb074 \
  -H 'Content-Type: application/json' \
  -H 'Postman-Token: 94b27823-fa63-43a8-bfec-e80a956c3fef' \
  -H 'X-Forensic-Access-Token: 0ccbdb4627c9d07c6c5b8f6e6cca44b5f8cb0c54ad7659098fa336240d494b0f9035e14bc42fc461224a9719f105e41026fed0f6f14188d9107b8c3d697a0cb1' \
  -H 'cache-control: no-cache'


import requests

url = "https://api-d.oz-services.ru/api/analyses/555c97c2-d8df-4762-85d4-1130922cb074"

payload = ""
headers = {
    'X-Forensic-Access-Token': "0ccbdb4627c9d07c6c5b8f6e6cca44b5f8cb0c54ad7659098fa336240d494b0f9035e14bc42fc461224a9719f105e41026fed0f6f14188d9107b8c3d697a0cb1",
    'Content-Type': "application/json",
    'cache-control': "no-cache",
    'Postman-Token': "b6f87b16-1e83-4187-b8c6-8cad899daa2c"
    }

response = requests.request("DELETE", url, data=payload, headers=headers)

print(response.text)


setUrl('https://api-d.oz-services.ru/api/analyses/555c97c2-d8df-4762-85d4-1130922cb074');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders(array(
  'Postman-Token' => '1411f829-b235-4bb8-b5aa-a12893ed648c',
  'cache-control' => 'no-cache',
  'Content-Type' => 'application/json',
  'X-Forensic-Access-Token' => '0ccbdb4627c9d07c6c5b8f6e6cca44b5f8cb0c54ad7659098fa336240d494b0f9035e14bc42fc461224a9719f105e41026fed0f6f14188d9107b8c3d697a0cb1'
));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}


OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api-d.oz-services.ru/api/analyses/555c97c2-d8df-4762-85d4-1130922cb074")
  .delete(null)
  .addHeader("X-Forensic-Access-Token", "0ccbdb4627c9d07c6c5b8f6e6cca44b5f8cb0c54ad7659098fa336240d494b0f9035e14bc42fc461224a9719f105e41026fed0f6f14188d9107b8c3d697a0cb1")
  .addHeader("Content-Type", "application/json")
  .addHeader("cache-control", "no-cache")
  .addHeader("Postman-Token", "79c6b4dc-c842-4857-863c-7ef3233f07ae")
  .build();

Response response = client.newCall(request).execute();

An empty JSON response is returned after a successful accomplishment of the method.