Actions111
- Item Actions
- Webhook Actions
- Collection Actions
- File Actions
- Activity Actions
- Asset Actions
- Authentication Actions
- Extension Actions
- Field Actions
- Folder Actions
- Permission Actions
- Preset Actions
- Relation Actions
- Revision Actions
- Role Actions
- Setting Actions
- User Actions
- Utility Actions
Overview
This node updates an existing Activity by its ID. It allows you to modify the comment content (with Markdown support) and optionally specify additional metadata to be returned in the response. This is useful for workflows where you need to programmatically update activity records, such as logging changes, updating status comments, or enriching activity data.
Example scenarios:
- Updating a project management activity with new comments.
- Modifying the details of a logged event in a custom application.
- Adding or changing metadata associated with an activity record.
Properties
| Name | Type | Meaning |
|---|---|---|
| Comment | String | The updated comment content. Supports Markdown. |
| ID | Number | Index of the activity to update. Must be 1 or greater. |
| Update Fields | Collection | Additional fields to update. Includes: |
| - Meta | String | What metadata to return in the response. |
Output
The output will be a JSON object representing the updated activity. The structure typically includes the updated fields (such as the comment), the activity ID, and any requested metadata if specified in the "Meta" field.
Dependencies
- May require authentication or API key depending on the Directus instance configuration.
- No explicit external dependencies are visible from the static code, but ensure your n8n instance can connect to the relevant Directus API.
Troubleshooting
- Missing Required Fields: If "Comment" or "ID" is not provided, the node may throw validation errors.
- Invalid ID: Providing an ID that does not exist will likely result in a "Not Found" or similar error from the backend.
- Permission Denied: If the credentials used do not have permission to update activities, you may receive an authorization error.
- Malformed Metadata: Supplying invalid data in the "Meta" field could cause errors in the response formatting.