Infomaniak Kdrive icon

Infomaniak Kdrive

Interact with Infomaniak Kdrive API

Actions178

Drive > Files > File/Directory > Comment → Modify Comment

AI-generated

Summary

Modifies a comment on an Infomaniak Kdrive file or directory.

Inputs

  • authentication — Authentication method to use for the API request. Defaults to OAuth2 if not specified. Choose between OAuth2 or API Key authentication.
  • path_drive_id (required) — Unique identifier of the Infomaniak Kdrive. Must be provided as a numeric value.
  • path_file_id (required) — Unique identifier of the file or directory containing the comment. Must be provided as a numeric value.
  • path_comment_id (required) — Identifier of the comment to modify. Provided as a string value.
  • queryParameters — Optional additional query parameters to include in the API request. Use the 'query_with' option to load additional data about the resource, which may include related resources.
  • bodyParameters — Optional body fields to include in the modification request. Available fields: 'body_body' (string) for the comment text, and 'body_is_resolved' (boolean) to mark the comment as resolved.
  • returnFullResponse — When set to true, returns the full API response object instead of the standard item output. Defaults to false.

Output shape

Returns the updated comment item by default. If returnFullResponse is enabled, returns the complete API response payload.

The operation updates the specified comment on the given file or directory within Infomaniak Kdrive using the selected authentication method and provided parameters.

Examples

Example 1: Modify a comment using OAuth2 authentication

Set authentication to OAuth2, provide the drive ID, file ID, and comment ID. Optionally include body text or resolution status.

Links

Discussion