Telegraph icon

Telegraph

Consume Telegraph API

Actions9

Page → Edit

AI-generated

Summary

Edit an existing Telegraph page identified by its path, updating its title, content, author name, and author URL, with support for Markdown, HTML, or Telegraph JSON content formats.

Inputs

  • Path (required) — Path to the Telegraph page to edit.
  • Title (required) — New title of the page.
  • Content Format (required) — Format of the page content: Markdown, HTML, or Telegraph JSON format.
  • Content (required) — Content of the page, provided as Markdown text, HTML string, or Telegraph Node JSON array matching the selected content format.
  • Author Name — Author name displayed below the article's title.
  • Author URL — Profile link of the author.
  • Return Content — Whether to include the content field in the returned page object.

Output shape

A single object representing the edited Telegraph page.

The returned object includes updated page details. If 'Return Content' is true, the content field is included in the response; otherwise, it is omitted. Errors are reported via standard node error handling.

Examples

Example 1: Edit a Telegraph page by specifying its path, providing new title and Markdown content; optionally setting author name and URL; receive updated page information.

Inputs: Path (string), Title (string), Content Format set to 'Markdown', Content (Markdown string), optional Author Name and Author URL, optional Return Content boolean.

Discussion