Update the query's associated script
queries_put_scripts(id, script_id)
id | integer required. The query ID. |
---|---|
script_id | integer required. The ID of the script associated with this query. |
A list containing the following elements:
integer, The query ID.
integer, The database ID.
string, The SQL to execute.
integer, The credential ID.
array, A preview of rows returned by the query.
array, A preview of columns returned by the query.
integer, The ID of the script associated with this query.
string, Deprecated and not used.
string, The error message for this run, if present.
string,
string,
string, The end time of the last run.
string, The state of the last run.
integer, The ID of the last run.
boolean, The hidden status of the item.
string, The name of the query.
list, A list containing the following elements:
id integer, The ID of this user.
name string, This user's name.
username string, This user's username.
initials string, This user's initials.
online boolean, Whether this user is online.
string, The start time of the last run.
integer, The ID of the report associated with this query.