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