Kater CLI Build an analysis parameter
kater parameter add
Add a parameter to a workspace, or to a query, such as a menu with a list of choices and a default.
A program gives the exact typed request with --request-file.
The request’s fields: label: The name people see on the input. Left out, it reads as the name in words. description: What the input is for, for the people who set it. ai_context: Guidance for an assistant that sets this input. kater_data_type: The value’s type: string, number, boolean, date, time or timestamp. parameter.add needs it. subtype: How many values it takes: single_value for one, range for two ordered endpoints, multiselect for several. parameter.add writes single_value when it is left out. default_value: The value used when none is given: one value, or a list for a range or a multiselect. It must be one of choices when the parameter has them. choices: The values a reader picks from, written as allowed_values.from_list, such as [“Spend”, “Clicks”, “Conversions”]. An empty list takes the choices out. min: The lowest value a number, date, time or timestamp parameter takes, written as min.from_value. Every default and every value a reader gives must meet it. Given as null, it takes the bound out. max: The highest value a number, date, time or timestamp parameter takes, written as max.from_value. Every default and every value a reader gives must meet it, and it must not be below min. Given as null, it takes the bound out. namespace (required): {kind?: “workspace”, scope: {kind?: “shared”, connection: text} or {kind?: “personal”, connection: text, user_id: text, topic?}, workspace: text}. The workspace the parameters are in. query: The query whose own parameters these are. Absent for the workspace root’s, which every query of the workspace shares. name (required): The parameter’s name in lower snake case, as the SQL reads it, such as trend_measure. expected_revision: The revision of the file as parameter.list gave it. A file that changed since is refused. Left out, the file as it is now. dry_run: Show the entry and the change to the file, and write nothing.
Examples
# Add a parameter to a workspace, or to a query, such as a menu with a list of choices and a defaultkater parameter addArguments
Options
It also takes the global options anywhere on the line, and --help.