Update segmentation query
Description
Update segmentation query.
Request URL
Method: POST
https://example.com/api/v1.1/datatables/query_segments/update
Request parameters
| Parameter | Type | Example | Required | Description |
| token | string | "abcdefghijklmnqrstuvwxyz" | Yes | API token |
| id | int | 1 | Yes | Query ID |
| name | string | "Main query" | Yes | Query name |
| shortname | string | "query1" | Yes | Query shortname |
| description | string | "query to the DB" | No | Query description |
| connector_id | int | 2 | Yes | External DB ID |
| column | string | "author" | Yes | Column used to search for profiles |
| sql | string | "SELECT * FROM table" | No | SQL query |
| cache_time_min | int | 35 | No | Result caching time |
| groups_id | []int | [ 0, 1 ] | No | List of group IDs to search for<br/>default – []<br/> |
| parameters | object | | No | Parameters of user variables used in SQL queries |