Actions9
Update from GitHub
AI-generatedSummary
Update an existing Posty5 hosted HTML page by specifying its HTML Hosting ID and providing a new HTML file from a GitHub raw URL. Supports optimistic concurrency with version control to avoid overwrite conflicts.
Inputs
- HTML Hosting ID (required) — The ID of the existing HTML hosting page to update.
- Page Name (required) — A friendly name for the HTML page.
- GitHub File URL (required) — The GitHub raw file URL of the HTML file to update the page with.
- Custom Slug — Custom slug for branded URLs, e.g., "my-page".
- Additional Fields — Optional metadata fields including organization Tag and external Reference ID.
- Version (required) — The version (
__v) of the item as read from a previous Get operation, used for concurrency control to prevent conflicting updates. - Version Options — Options for handling missing or unknown version values, allowing to either fail or use the latest version for update.
Output shape
a single record object representing the updated HTML hosting page details including metadata and version (__v).
Requires providing the current version to ensure update consistency; if the version is out of date, the operation fails with a conflict error unless Version Options allow using the latest version. The node uploads the HTML file from the given GitHub raw URL and returns the updated page details including the latest version.
Examples
Example 1: Updating an existing HTML page from a GitHub file
Set the HTML Hosting ID to the existing page's ID, provide a new Page Name, the GitHub raw URL pointing to the updated HTML file, optionally define a Custom Slug and additional metadata fields, and specify the current version number from a preceding Get step to avoid conflicts.