Skip to main content
Enable or disable querying for a table. A table must be enabled for querying before it can be used with clay tables query. Check how many tables you can enable with clay tables query-usage.
clay tables update <tableId> --query-enabled <true|false>

Arguments

ArgumentDescription
tableIdTable id, e.g. tbl_abc123. Required.

Flags

FlagDescription
--query-enabled <true|false>Enable (true) or disable (false) querying for the table.

Output

{
  "id": "tbl_abc123",
  "queryEnabled": true
}
FieldTypeDescription
idstringTable id.
queryEnabledbooleanWhether querying is now enabled for the table.

Errors

CodeExitNotes
validation_error2Missing or invalid --query-enabled, or missing table id.
auth_forbidden3The API key lacks the cli:all scope, or you lack access to the table.
not_found6No table with that id.

Examples

clay tables update tbl_abc123 --query-enabled true
clay tables update tbl_abc123 --query-enabled false | jq '.queryEnabled'