This
updateMenuCell
method allows the API to dynamically update the value of a specific cell within a component. You can update cells belog to same menu at once.Use cases:
- Pre-fill user data into forms
- Dynamically load dropdown options
- Inject values based on backend logic
๐ This builds a real-time bridge between the frontend UI and backend services.
Field | Type | Required | Description |
method | String | Yes | "updateMenuCell" |
app_id | String | Yes | Unique identifier for Target App. |
user_id | String | Yes | Unique identifier for the target user. |
menu_id | String | Yes | Unique identifier for the target menu: must be one of the existing predefined screens created within your app using nandbox App Builderโs Custom Component. |
cells | Array of Cells | Yes | Array of target cells within the target screen: the cell properties will be set within the target cell. |
reference | Long | Yes | Unique local identifier for the message. |
SDK Mapping โ updateMenuCell
SDK | Request Method | Response Callback |
Java | api.updateMenuCell(userId, menuId, appId, cells, reference, disableNotification); | onMessagAckCallback(MessageAck msgAck) |
JavaScript | api.updateMenuCell(userId, menuId, appId, cells, reference, disableNotification); | onMessagAckCallback(msgAck) |
Python | napi.update_menu_cell(self, user_id, menu_id, app_id, cells, reference, disable_notification) | on_message_ack_callback(self, msg_ack) |
Requests
json{ "method": "updateMenuCell", "app_id": "90090684341943480", "user_id": "90089584793718478", "menu_id": "uV1kyCyvseaar5j", "cells": [ { "cell_id": "b_MwoZavDgnumnsYt", "form": "output", "style": "balanced", "cell_order": 0, "version": "RnB2nis36P1VTH9Z", "callback": "b_MwoZavDgnumnsYt", "headline": "Hello!", "subhead": "World!", "body": "Hi!", "font_size": { "headline": "md", "subhead": "md", "body": "md" }, "text_align": { "headline": "center", "subhead": "center", "body": "center" } } ], "reference": "123452342" }
python
Responses
json{ "method": "messageAck", "ack": { "reference": 123452342, "date": 1744222895009, "gmid": null, "message_id": "d1_GNYzeUL5126172" } }