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 sets the picture of a WhatsApp group using the WARest WhatsApp REST API. It allows users to specify a session, the target group by its ID, and the new group picture via a URL, local path, or data URI. This operation is useful for automating group management tasks such as updating group images in bulk or as part of a workflow.
Use Case Examples
- Automatically update the group picture for a marketing campaign group by providing a new image URL.
- Set a custom group picture for a newly created WhatsApp group as part of an onboarding process.
Properties
| Name | Meaning |
|---|---|
| Session | Identifier of the WhatsApp session to use for the API call. It can be selected from a list of available sessions or entered manually. |
| Group ID | The unique identifier (JID) of the WhatsApp group whose picture is to be set. It usually ends with '@g.us' or can be a raw ID. |
| Group Picture | The new picture for the group. This can be provided as a URL, a local file path, or a data URI. |
Output
JSON
json- The JSON response from the WARest API after setting the group picture, typically containing the operation result or status.
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; otherwise, the API call will fail.
- Verify the group ID is correct and corresponds to an existing WhatsApp group.
- The picture must be accessible if provided as a URL or correctly formatted if a local path or data URI is used.
- Common errors include invalid session, invalid group ID, or unsupported picture format. Check API response messages for details.
Links
- WARest WhatsApp REST API - Official repository and documentation for the WARest WhatsApp REST API used by this node.
