API Endpoints
Tags
Delete tags

Base URL

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

Request

Request headers

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

URL Parameters

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

Request body

Request body
Название
Тип / Значение
Описание
tag_ids
Array<UUID>
Array of tag IDs

Request example

1const url =
2  "https://v1.empr.cloud/api/v1/folders/{folderId}/tags"; 
3
4const body = {
5  "tag_ids": [
6    "e3b7b1e0-9b0a-4c9a-8b9a-9b0a4c9a8b9a"
7  ]
8}
9
10const options = {
11  method: "DELETE",
12  headers: {
13    "X-Token": "Your Token", 
14    "Content-Type": "application/json"
15  }, 
16  body: JSON.stringify(body)
17};
18
19fetch(url, options)
20  .then((response) => {
21    response.json().then((data) => {
22      console.log(data);
23    });
24  })
25  .catch((error) => {
26    console.error(error);
27  });

Response

Response data

Response
Название
Тип / Значение
Описание
data
Array<Tag>
Array of deleted tags

Response example

1{
2    "data": [
3        {
4            "user_id": "***privacy***",
5            "id": "***privacy***",
6            "folder_id": "***privacy***",
7            "tag_name": "1",
8            "created_at": "2023-12-26T08:27:02.940372Z",
9            "updated_at": "2023-12-26T08:27:02.940372Z"
10        }
11    ]
12}

Types

Tag
Название
Тип / Значение
Описание
id
UUID
Unique identifier
user_id
UUID
User identifier
folder_id
UUID
Folder identifier
tag_name
String
Tag name
created_at
Timestamp
Creation date
updated_at
Timestamp
Update date