Preserve your Setka Editor content after the service shutdown
This is a step-by-step guide on ensuring your content created with Setka Editor is safe in HubSpot after Setka Editor infrastructure shutdown.
Introduction
To ensure robust content preservation on HubSpot after the Setka Editor infrastructure shutdown this guide will do two things:
Explain which assets rely on Setka Editor CDN
Describe the steps needed to migrate mentioned assets to HubSpot CDN
Assets that rely on Setka Editor CDN
images
JavaScript code for enabling interactive post elements
CSS code which enables all the styling of your articles
Migrating Setka Editor assets to HubSpot CDN
Step 1 — receive the list of posts
Make a request to Setka Content Cloud API to receive your list of Setka Editor posts. Here is a request example:
state
determines the publication status of the post:
Set to
published
to only get published posts.Set to
draft
to get drafts.Set to
all
to get both drafts and published posts.
limit
determines the number of posts you can receive as a response. Please make sure you don't set the value too low and miss some of the posts.
Check the Content Aloud API documentation for more filters.
Step 2 — download assets for every post
If the request is successful, you will receive a response consisting of an array of posts. The response will be paginated if the number of posts is large. Below is an example API request response:
Download the assets for each post from the array. The possible types of assets are:
Step 3 — authenticate within HubSpot API
HubSpot provides detailed instructions on how to authenticate calls to their API. Please follow their instruction and come back here once you've successfully authenticated.
Step 4 — uploading assets to Hubspot
Using Hubspot CMS Source Code API upload the assets from your posts to the HubSpot Developer File system. Doing so will allow you to access these files and use them within Hubspot Design Manager.
Step 5 — replacing asset URLs and updating content
You can perform this operation in HubSpot or in Setka Editor. Proceed with the option of your choice.
In HubSpot
Use a script to execute a sequence of actions for each post you need to preserve:
Retrieve a blog post through Hubspot CMS Blog Post API
Replace Setka Editor asset URLs with HubSpot asset URLs using a format suggested in a code block below
Update a Blog Post using the HubSpot interface or corresponding API call
In Setka Editor
Use Get Post call to retrieve a blog post through Setka Content Cloud API
Replace Setka Editor asset URLs with HubSpot asset URLs using a format suggested in a code block above
Use the Update Post method for each Setka Editor post to update all necessary blog posts
On the Posts page of your Setka Editor account press the Update post button, to push the updated versions to your HubSpot.
As a result, your HubSpot should have updated post content with no asset URLs located on Setka Editor CDN.
Last updated