Cosense icon

Cosense

Read and write pages in Cosense (formerly Scrapbox)

Page → Insert Lines

AI-generated

Overview

This node operation inserts lines of text into an existing page within a specified Cosense/Scrapbox project. It is useful for dynamically updating or appending content to pages without overwriting the entire page. For example, you can insert meeting notes, code snippets, or additional information at a specific line number in a project page.

Use Case Examples

  1. Insert a list of tasks after the first line of a project page.
  2. Add a new paragraph of text at the beginning of a page to update documentation.

Properties

Name Meaning
Project Name The name of your Cosense/Scrapbox project where the page exists.
Page Title The title of the page into which lines will be inserted.
Line Number The line number after which the text will be inserted. 0 means insertion at the beginning of the page.
Text The text content to insert. Each line in this text becomes a separate line in the Cosense page.

Output

JSON

  • json - The response from the Cosense API after inserting lines, typically including updated page information or confirmation.

Dependencies

  • Requires an API key credential for Cosense API authentication.

Troubleshooting

  • Ensure the project name and page title are correct and exist in Cosense to avoid 'page not found' errors.
  • Line number must be a non-negative integer; negative values will cause errors.
  • API authentication errors may occur if the Cosense API key credential is missing or invalid.

Discussion