Folder MetaData [DELETE] Method (DELETE)

Folder Media [DELETE] method is used to delete metadata of a single folder.

Additional Request Parameters.

  • folder_id: unique identifier of the target folder (in the request headline).

Request Examples.

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

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

  • Folder ID “4dfa27bb-1b89-46ab-b488-faf87046471b”.

HTTP

Bash

Python

php

Java


DELETE /api/folders/4dfa27bb-1b89-46ab-b488-faf87046471b/meta_data/ HTTP/1.1
Host: api-d.oz-services.ru
X-Forensic-Access-Token: 0ccbdb4627c9d07c6c5b8f6e6cca44b5f8cb0c54ad7659098fa336240d494b0f9035e14bc42fc461224a9719f105e41026fed0f6f14188d9107b8c3d697a0cb1
Content-Type: application/json
User-Agent: PostmanRuntime/7.15.2
Accept: */*
Cache-Control: no-cache
Postman-Token: 34694f01-2f44-4652-9a70-c24b60d7e952,ff85724e-ae6f-480f-bf70-c3dba75145cd
Host: api-d.oz-services.ru
Accept-Encoding: gzip, deflate
Content-Length: 
Connection: keep-alive
cache-control: no-cache


curl -X DELETE \
  https://api-d.oz-services.ru/api/folders/4dfa27bb-1b89-46ab-b488-faf87046471b/meta_data/ \
  -H 'Accept: */*' \
  -H 'Accept-Encoding: gzip, deflate' \
  -H 'Cache-Control: no-cache' \
  -H 'Connection: keep-alive' \
  -H 'Content-Length: ' \
  -H 'Content-Type: application/json' \
  -H 'Host: api-d.oz-services.ru' \
  -H 'Postman-Token: 34694f01-2f44-4652-9a70-c24b60d7e952,5ca5b71d-7a75-45c5-8b42-570d5ffed3e0' \
  -H 'User-Agent: PostmanRuntime/7.15.2' \
  -H 'X-Forensic-Access-Token: 0ccbdb4627c9d07c6c5b8f6e6cca44b5f8cb0c54ad7659098fa336240d494b0f9035e14bc42fc461224a9719f105e41026fed0f6f14188d9107b8c3d697a0cb1' \
  -H 'cache-control: no-cache'


import requests

url = "https://api-d.oz-services.ru/api/folders/4dfa27bb-1b89-46ab-b488-faf87046471b/meta_data/"

payload = ""
headers = {
    'X-Forensic-Access-Token': "0ccbdb4627c9d07c6c5b8f6e6cca44b5f8cb0c54ad7659098fa336240d494b0f9035e14bc42fc461224a9719f105e41026fed0f6f14188d9107b8c3d697a0cb1",
    'Content-Type': "application/json",
    'User-Agent': "PostmanRuntime/7.15.2",
    'Accept': "*/*",
    'Cache-Control': "no-cache",
    'Postman-Token': "34694f01-2f44-4652-9a70-c24b60d7e952,afaf00d9-14fa-4263-aa8f-9df58d46a070",
    'Host': "api-d.oz-services.ru",
    'Accept-Encoding': "gzip, deflate",
    'Content-Length': "",
    'Connection': "keep-alive",
    'cache-control': "no-cache"
    }

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

print(response.text)


setUrl('https://api-d.oz-services.ru/api/folders/4dfa27bb-1b89-46ab-b488-faf87046471b/meta_data/');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders(array(
  'cache-control' => 'no-cache',
  'Connection' => 'keep-alive',
  'Content-Length' => '',
  'Accept-Encoding' => 'gzip, deflate',
  'Host' => 'api-d.oz-services.ru',
  'Postman-Token' => '34694f01-2f44-4652-9a70-c24b60d7e952,a371c4bf-d933-47ef-938c-cc91de80a870',
  'Cache-Control' => 'no-cache',
  'Accept' => '*/*',
  'User-Agent' => 'PostmanRuntime/7.15.2',
  '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/folders/4dfa27bb-1b89-46ab-b488-faf87046471b/meta_data/")
  .delete(null)
  .addHeader("X-Forensic-Access-Token", "0ccbdb4627c9d07c6c5b8f6e6cca44b5f8cb0c54ad7659098fa336240d494b0f9035e14bc42fc461224a9719f105e41026fed0f6f14188d9107b8c3d697a0cb1")
  .addHeader("Content-Type", "application/json")
  .addHeader("User-Agent", "PostmanRuntime/7.15.2")
  .addHeader("Accept", "*/*")
  .addHeader("Cache-Control", "no-cache")
  .addHeader("Postman-Token", "34694f01-2f44-4652-9a70-c24b60d7e952,112226b7-ab66-48fb-bd38-5d8288737a86")
  .addHeader("Host", "api-d.oz-services.ru")
  .addHeader("Accept-Encoding", "gzip, deflate")
  .addHeader("Content-Length", "")
  .addHeader("Connection", "keep-alive")
  .addHeader("cache-control", "no-cache")
  .build();

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

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