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 profile picture for a WhatsApp session using the WARest WhatsApp REST API. It allows users to specify a session and provide a picture URL, local path, or data URI to update the profile picture. This is useful for automating profile updates in WhatsApp business or personal accounts managed via WARest.
Use Case Examples
- Automatically update a WhatsApp profile picture based on an external event or trigger.
- Set a new profile picture for a WhatsApp session as part of a workflow to maintain brand consistency.
Properties
| Name | Meaning |
|---|---|
| Session | The WhatsApp session identifier from WARest to specify which session's profile picture to update. |
| Picture | The profile picture to set, provided as a URL, local file path, or data URI. |
Output
JSON
json- The response from the WARest API after setting the profile picture, typically containing the operation result or updated profile data.
Dependencies
- Requires an API key credential for the WARest WhatsApp REST API and the base URL of the WARest server.
Troubleshooting
- Ensure the session ID is valid and active; invalid or expired sessions will cause errors.
- Verify the picture input is a valid URL, local path, or properly formatted data URI.
- Check API credentials and base URL configuration to avoid authentication or connection errors.
- Common error messages include 'Operation not implemented' if the operation name is incorrect, or API errors returned from the WARest server indicating issues with the request payload or session state.
Links
- WARest WhatsApp REST API - Official documentation and source for the WARest WhatsApp REST API used by this node.
