SoftSolzSoftSolz
HomeAPI GuideAPI ReferenceWidget Tester
blogs

Update a post. Provided keys are changed.

Update a post. Provided keys are changed.

PATCHhttps://staging.softsolz.uk/api/v1/services/blogs/posts/{id}

Recent Requests

Log in to see full request history
TimeStatusUser Agent
Make a request to see history.

Path Params

idstringrequired

Headers

Authorizationstringrequired

Bearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.

Idempotency-Keystring

Optional idempotency key for safe retries.

Body Params

titlestring

Post title.

body_htmlstring

Post body as HTML.

subtitlestring

Subtitle.

excerptstring

Excerpt.

slugstring

URL slug.

categorystring

Category label.

tagsarray of strings

Tags.

authorstring

Display author/byline name.

author_image_urlstring

Byline avatar image URL.

featuredboolean

Feature this post.

no_indexboolean

Exclude from search engines.

comments_enabledboolean

Allow readers to post comments on this post.

expected_updated_atstring

Optimistic-concurrency guard; mismatch returns 409 STALE_VERSION.

Request

import { SoftSolz } from '@softsolz/sdk';
const client = new SoftSolz({ apiKey: process.env.SOFTSOLZ_API_KEY });
const result = await client.blogs.updatePost('<id>', {});
console.log(result);

Credentials

Sent as a Bearer token. Stored only in your browser.

Response · 200

{
"data": {}
}