API Endpoints
Folders
Delete folder

Base URL

DELETE
https://v1.empr.cloud/api/v1/folders/{folderId}

Request

Request headers

Headers
Название
Тип / Значение
Описание
X-Token
String
Auth token

URL Parameters

Query parameters
Название
Тип / Значение
Описание
folderId
UUID
The ID of the folder to be deleted

Request example

1const url =
2  "https://v1.empr.cloud/api/v1/folders/{folderId}"; 
3
4const options = {
5  method: "DELETE",
6  headers: {
7    "X-Token": "Your Token", 
8  }, 
9};
10
11fetch(url, options)
12  .then((response) => {
13    response.json().then((data) => {
14      console.log(data);
15    });
16  })
17  .catch((error) => {
18    console.error(error);
19  });

Response

Response data

Response
Название
Тип / Значение
Описание
data
Array
usage
Object
Plan usage data

Response example

1{
2    "data": [],
3    "usage": {
4        "users": 1,
5        "profiles": 0
6    }
7}