Variables

Variable list

GET https://app.hightouch.ai/api/store/custom_fields/

Query Parameters

{
  "status": "ok",
  "result": {
    "count": 42,
    "next": null,
    "previous": null,
    "results": [
      {
        "id": 577,
        "shop_id": 2,
        "name": "about",
        "dtype": {
          "id": "text",
          "name": "ВСкст"
        },
        "description": null
      },
      ...
    ]
  }
}

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

{
  "status": "ok",
  "result": {
    "id": 758,
    "shop_id": 2,
    "name": "my_new_var",
    "dtype": {
      "id": "number",
      "name": "Число"
    },
    "description": "Новая пСрСмСнная"
  }
}

Change a variable

PATCH https://app.hightouch.ai/api/store/custom_fields/:id/

Path Parameters

Request Body

 {
  "status": "ok",
  "result": {
    "id": 758,
    "shop_id": 2,
    "name": "my_new_var",
    "dtype": {
      "id": "number",
      "name": "Число"
    },
    "description": "Новая пСрСмСнная"
  }
}

Delete a variable

DELETE https://app.hightouch.ai/api/store/custom_fields/:id/

Path Parameters

Last updated