Base URL
PUT
https://v1.empr.cloud/api/v1/folders/{folderId}/tags/{tagId}
Request
Request headers
Headers
Название
Тип / Значение
Описание
X-Token
String
Auth token
Content-Type
application/json
URL Parameters
Query parameters
Название
Тип / Значение
Описание
folderId
UUID
ID of the folder
tagId
UUID
ID of the tag
Request body
Request body
Название
Тип / Значение
Описание
name
String
Name of the tag
Request examples
1const url =
2 "https://v1.empr.cloud/api/v1/folders/{folderId}/tags/{tagId}";
3
4const body = {
5 "name": "Tag1"
6}
7
8const options = {
9 method: "PUT",
10 headers: {
11 "X-Token": "Your Token",
12 "Content-Type": "application/json"
13 },
14 body: JSON.stringify(body)
15};
16
17fetch(url, options)
18 .then((response) => {
19 response.json().then((data) => {
20 console.log(data);
21 });
22 })
23 .catch((error) => {
24 console.error(error);
25 });
Response
Response data
Response
Название
Тип / Значение
Описание
data
Tag
Tag object
Response examples
1{
2 "data": {
3 "user_id": "***privacy***",
4 "id": "***privacy***",
5 "folder_id": "***privacy***",
6 "tag_name": "Tag1",
7 "created_at": "2023-12-08T12:09:52.023576Z",
8 "updated_at": "2023-12-08T12:09:52.023576Z"
9 }
10}
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