Skip to content
AdlyseDocs
Product guideMCP reference
⌘K
Open Adlyse
⌘K
Overview
QuickstartAuthentication
adlyse-insights
adlyse-ads
adlyse-workflows
list_workflowsget_workflowrun_workflowget_run_statusget_node_runget_workflow_schemacreate_workflowupdate_workflowdelete_workflowcreate_releaselist_releasesset_production_releasedelete_releaselist_authoring_resourceslist_tablesget_tablequery_table_rowscreate_tableadd_table_columnsadd_table_rowsupsert_table_rowsupdate_table_rowsdelete_table_rowsupdate_tabledelete_tableupdate_table_columndelete_table_columnreorder_table_columnslist_schedulesget_schedulecreate_scheduleupdate_schedulepause_scheduleresume_scheduledelete_scheduletrigger_schedulerun_assistantget_assistant_runlist_assistant_threadsget_assistant_threadlist_assistantsget_assistantcreate_assistantupdate_assistantdelete_assistantlist_assistant_handoffscreate_assistant_handoffupdate_assistant_handoffdelete_assistant_handofflist_filesread_filegrep_fileswrite_fileedit_filemove_filearchive_filelist_file_versionspromote_file_versionlist_skillsget_skillcreate_skillupdate_skilldelete_skillassign_skill_to_assistantremove_skill_from_assistantlist_agent_resourcesstart_batch_taskget_batch_taskcontrol_batch_task
adlyse-admin
adlyse-all
  1. Overview
  2. adlyse-workflows

update_table

Update a table’s name, description, or conditional background and text colors.

Parameters#

NameTypeRequiredDefaultDescription
table_idstringyesThe table id
namestringnoNew name
descriptionstringnoNew description
coloring_rulesstringnoJSON array replacing all color rules; omit to preserve, [] to clear

Read get_table first for existing coloring_rules, column IDs, and each column’s valid_operators. Rule conditions and targets use column IDs, rather than keys or display names. If coloring_rules_error is non-null, repair or remove invalid rules before resubmitting them; column deletion or type changes can invalidate saved rules.

json
[
  {
    "id": "high-spend",
    "enabled": true,
    "target": "columns",
    "columnIds": ["col_spend"],
    "background": "red",
    "text": "red",
    "conditions": {
      "conjunction": "and",
      "conditions": [
        {"id": "spend-limit", "columnId": "col_spend", "operator": "gt", "value": 1000}
      ]
    }
  }
]

Use target: "row" with columnIds: [] to color the entire row, or target: "columns" with one or more column IDs. Each rule needs a unique ID and at least one condition; condition IDs must be unique within a rule. Conditions support and or or; is_empty and is_not_empty need no value.

Set background, text, or both to gray, red, orange, yellow, green, blue, purple, or pink. Rules run in array order; the first matching rule that supplies a color wins for each property. Limits: 50 rules and 100 conditions total.

Returns#

The table schema, including saved coloring_rules — same shape as get_table.

Errors#

error_typeWhen
auth_errorMissing / invalid API key
invalid_requestNo changes given, or an empty name
invalid_coloring_rulesInvalid JSON, rule shape, colors, column references, operators, values, or limits
not_foundUnknown, deleted, foreign-organization, or platform-managed table
Previousdelete_table_rowsNextdelete_table