Actions90
- Sessions Actions
- Messages - Sending Actions
- Chats Actions
- Messages - Actions Actions
- Groups Actions
- List Groups
- Group Info
- Get Invite Link
- Revoke Invite Link
- Join via Link
- Preview via Link
- Create Group
- Delete Group
- Update Group Description
- Toggle Announcement Mode
- List Participants
- Add Participants
- Remove Participants
- Demote Participants
- Approve Join Request
- Reject Join Request
- List Join Requests
- Get Group Picture
- Set Group Picture
- Delete Group Picture
- Leave Group
- Update Group Name
- Lock Group Edits
- Promote Participants
- Profile Actions
- Server Actions
- Miscellaneous Actions
Overview
This node operation locks or unlocks edits in a WhatsApp group, allowing only admins to make changes when locked. It is useful for group administrators who want to control who can modify group settings or content, ensuring that only authorized users (admins) can make edits. For example, a community manager can lock group edits to prevent members from changing group info or settings.
Use Case Examples
- Lock group edits to restrict editing permissions to admins only.
- Unlock group edits to allow all members to make changes.
Properties
| Name | Meaning |
|---|---|
| Session | The WhatsApp session to use for the operation, selected from existing sessions or entered manually. |
| Group ID | The unique identifier of the WhatsApp group to lock or unlock edits for. |
| Locked (Only admins can edit) | Boolean flag to set the group as locked (true) or unlocked (false). When locked, only admins can edit the group. |
Output
JSON
json- The response from the WARest API indicating the result of the lock/unlock operation on the group.
Dependencies
- Requires an API key credential for the WARest WhatsApp REST API and the base URL of the API server.
Troubleshooting
- Ensure the session ID is valid and active; invalid sessions will cause authentication errors.
- Verify the group ID is correct and corresponds to an existing WhatsApp group.
- Check that the API key credential is correctly configured and has permissions to modify group settings.
- If the operation fails, the node will throw an error indicating the issue, such as missing parameters or API errors.
Links
- WARest API Documentation - Set Group Locked - Official documentation for the API endpoint used to lock or unlock group edits.
