Zalo OA icon

Zalo OA

Zalo Official Account API

Zalo OA → Update OA Menu

AI-generated

Summary

Creates or updates the Zalo OA sidebar menu using a list of menu items.

Inputs

  • menuItems (required) — A collection of menu items to create or update. Each item contains: title (string), type (options: Open URL, Send Message, Make Phone Call, Open App), and payload (string corresponding to the action type).

Output shape

a single record containing the result of the menu update.

The exact shape of the returned record depends on the Zalo OA API response; typically includes status or message details.

Examples

Example 1: Create a menu with a URL link and a phone call action.

Set menuItems to include a title 'Link', type 'Open URL', payload 'https://example.com' and a title 'Call', type 'Make Phone Call', payload '0123456789'.

Links

Discussion