API Endpoints
Statuses
Getting statuses list

Base URL

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

Request

Request headers

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

URL Parameters

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

Request example

1const url =
2  "https://v1.empr.cloud/api/v1/folders/{folderId}/statuses"; 
3
4const options = {
5  method: "GET",
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<Status>
List of statuses

Response example

1{
2            "data": [
3                {
4                    "user_id": "***privacy***",
5                    "id": "***privacy***",
6                    "folder_id": "***privacy***",
7                    "status": "CHECK",
8                    "status_color": "#FFC107",
9                    "created_at": "2023-06-22T17:36:12.605923Z",
10                    "updated_at": "2023-06-22T17:36:12.605923Z"
11                },
12                {
13                    "user_id": "***privacy***",
14                    "id": "***privacy***",
15                    "folder_id": "***privacy***",
16                    "status": "ERROR",
17                    "status_color": "#FF4842",
18                    "created_at": "2023-06-22T17:36:36.444060Z",
19                    "updated_at": "2023-06-22T17:36:36.444060Z"
20                },
21                {
22                    "user_id": "***privacy***",
23                    "id": "***privacy***",
24                    "folder_id": "***privacy***",
25                    "status": "GOOD",
26                    "status_color": "#00AB55",
27                    "created_at": "2023-06-22T17:36:12.605923Z",
28                    "updated_at": "2023-06-22T17:36:12.605923Z"
29                }
30            ]
31        }

Types

Status
Название
Тип / Значение
Описание
id
String
ID
user_id
String
Owner ID
status
String
Status
status_color
String
Hexadecimal string representing the status color
created_at
String
Creation date
updated_at
String
Last update date