update-task-body
Replaces a specific text segment in an existing Dooray task body while preserving the rest of the content, including inline images and file links.
Instructions
Replace part of a task body (업무 본문 일부 치환).
Use this instead of update-task when only a few spots in a long body change. It reads the current body, replaces oldText with newText, and saves it with the same mimeType. The rest of the body (including inline images and file links) stays as it is.
Rules:
oldText must match the current body exactly (copy it from get-task)
Fails if oldText is not found
Fails if oldText appears more than once, unless replaceAll is true. Add surrounding text to make it unique
Examples:
{"projectId": "123", "taskId": "456", "oldText": "2. 배포", "newText": "2. 카나리 배포"}
{"projectId": "123", "taskId": "456", "oldText": "TODO", "newText": "완료", "replaceAll": true}
Returns: replacedCount and the body mimeType.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | Task ID | |
| newText | Yes | Replacement text | |
| oldText | Yes | Exact text to replace in the current body | |
| projectId | Yes | Project ID | |
| replaceAll | No | Replace every occurrence (default: false) |