Actions5
- Friend Actions
- Contact Actions
Contact → Change Alias
AI-generatedSummary
Change the display name (alias) of a Zalo contact (friend) by providing their user ID and the new alias string.
Inputs
- User ID (required) — The Zalo user ID of the contact to change alias for.
- New Alias (required) — The new display name to assign to this contact.
Output shape
a list of JSON objects, each with keys success (true if alias changed), userId, and alias reflecting the new display name
Processes each input item separately; if the 'changeFriendAlias' API method is unavailable, the operation throws an error. Errors can be captured if 'continueOnFail' is enabled.
Examples
Example 1: Change alias of contact with user ID '123456789' to 'Nguyễn Văn A - Phòng 101'
Provides 'aliasUserId' = '123456789' and 'newAlias' = 'Nguyễn Văn A - Phòng 101' as inputs.