Variables
Variable list
GET
https://app.hightouch.ai/api/store/custom_fields/
Query Parameters
Name | Type | Description |
---|---|---|
shop_id | integer | ID магазина |
limit | integer | Кол-во записей (макс. 100) |
offset | integer | Сдвиг по записям |
search | string | Строка поиска по названию или ID переменной |
Add new variable
POST
https://app.hightouch.ai/api/store/custom_fields/
Variables include the following types:
text
- the line;
number
- integer or fractional number;
bool
- Boolean type ("Yes/No");
image
- saves the URL of the picture;
json
- saves a JSON object of any structure;
Request Body
Name | Type | Description |
---|---|---|
shop_id | integer | ID магазина |
name | string | Название переменной (латиницей) |
dtype | object | Тип данных. Например, |
description | string | Описание переменной |
Change a variable
PATCH
https://app.hightouch.ai/api/store/custom_fields/:id/
Path Parameters
Name | Type | Description |
---|---|---|
id | integer | Variable ID |
Request Body
Name | Type | Description |
---|---|---|
shop_id | integer | Store ID |
name | string | New name of the variable |
description | string | New description of the variable |
Delete a variable
DELETE
https://app.hightouch.ai/api/store/custom_fields/:id/
Path Parameters
Name | Type | Description |
---|---|---|
id | integer | Variable ID |
Last updated