API Endpoints
Folders
Edit folder

Base URL

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

Request

Request headers

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

URL Parameters

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

Request body

Body
Название
Тип / Значение
Описание
folder_name
String?
Folder name
folder_icon
String?
Folder icon Available values: Cloud, Google, Facebook, TikTok, Amazon, Bitcoin, Meta, PayPal, Discord, Twitter, Vkontakte, Youtube, Tinder, Onlyfans, Threads
folder_color
String?
Folder color. Available values: #FFC1073D, #C8E4FFCD, #3366FF3D, #54D62C3D, #FF48423D, #919EAB3D

Types that end with a question mark (?) are optional.

Request examples

1const url =
2  "https://v1.empr.cloud/api/v1/folders/{folderId}"; 
3
4const body = {
5  "folder_icon": "Google"
6}
7
8const options = {
9  method: "PATCH",
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
Folder
Updated folder

Response example

1{
2    "data": [
3        {
4        "id": "cf4003e0-e630-4bc3-9961-61d81c2f3aa5",
5        "owner": "28a3abfc-6892-4dd0-a4f1-57b449851865",
6        "folder_name": "Google Accounts",
7        "folder_icon": "Meta",
8        "folder_color": "#3366FF3D",
9        "created_at": "2023-06-22T17:35:58.373758Z",
10        "updated_at": "2023-06-22T17:35:58.373758Z",
11        "deleted_at": null
12        },
13    ]
14}
15

Types

Folder
Название
Тип / Значение
Описание
id
String
ID
owner
String
Owner ID
folder_name
String
Name
folder_icon
String
Icon
folder_color
String
Color
created_at
String
Creation date
updated_at
String
Last update date
deleted_at
String?
Folder deletion date
*Types that end with a question mark (?) are optional.*