Chatwork icon

Chatwork

Retrieve data from Chatwork API.

Overview

This node integrates with the Chatwork API to update a specific message within a chatroom. It allows users to modify the content of an existing message by specifying the chatroom and message identifiers along with the new message body. This is useful in scenarios where you need to correct or update information previously sent in a chat, such as fixing typos, adding clarifications, or updating task-related messages.

Practical examples include:

  • Updating a project status message in a team chatroom.
  • Correcting details in a shared announcement without sending a new message.
  • Modifying instructions or requests in ongoing conversations.

Properties

Name Meaning
Chatroom ID The unique numeric identifier of the chatroom containing the message to be updated.
Message ID The unique numeric identifier of the message that needs to be updated.
Message body The new text content that will replace the existing message body.

Output

The output is a JSON object representing the updated message returned from the Chatwork API. It typically includes fields such as message ID, updated body content, timestamps, and possibly metadata about the message or chatroom. The node does not output binary data for this operation.

Dependencies

  • Requires an active connection to the Chatwork API using a valid API authentication token configured in n8n credentials.
  • Network access to Chatwork's REST API endpoints.
  • Proper permissions on the Chatwork account to update messages in the specified chatroom.

Troubleshooting

  • Common issues:
    • Invalid or missing Chatroom ID or Message ID can cause errors indicating resource not found.
    • Insufficient permissions to edit messages may result in authorization errors.
    • Providing an empty or invalid message body might cause the API to reject the request.
  • Error messages:
    • "operation is not supported." — occurs if the operation parameter is incorrect or unsupported.
    • HTTP 404 errors — usually mean the chatroom or message ID does not exist or is inaccessible.
    • HTTP 401/403 errors — indicate authentication or permission problems; verify API credentials and user rights.
  • Resolutions:
    • Double-check IDs and ensure they correspond to existing resources.
    • Confirm the API key has necessary scopes and the user has editing rights.
    • Ensure the message body is non-empty and properly formatted.

Links and References

Discussion