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.
  • Modifying instructions or requests sent to collaborators.

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 node outputs JSON data representing the response from the Chatwork API after updating the message. This typically includes details about the updated message or confirmation of the update operation. The output is structured as an array of JSON objects, each corresponding to an input item processed.

No binary data output is involved in 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 API endpoints is necessary.
  • Proper permissions on the specified chatroom and message to perform updates.

Troubleshooting

  • Common issues:

    • Invalid or missing Chatroom ID or Message ID can cause errors indicating resource not found.
    • Insufficient permissions to edit the message may result in authorization errors.
    • Providing an empty or invalid message body might lead to validation errors from the API.
  • Error messages and resolutions:

    • "operation is not supported." — Ensure the operation parameter is correctly set to "updateMessage".
    • "resource is not supported." — Confirm the resource parameter is set to "rooms".
    • API errors related to authentication usually mean the API key credential is missing or invalid; reconfigure the credential.
    • HTTP 404 errors indicate the specified chatroom or message does not exist or is inaccessible.
    • HTTP 400 errors often relate to malformed request data; verify all required properties are correctly provided.

Links and References

Discussion