younifyd
Menu

Update A Blog Post

Update a Blog Post

PUT/blog/posts/{id}

Use it in a workflow

  1. Add a step and choose the BigCommerce Content connector.
  2. Pick the Update A Blog Post action (under Blog).
  3. Fill in the fields below, then reference the result from later steps as {{updateABlogPost.response.data}}.

Request

Path parameters

idintegerrequired

ID of the blog post.

Headers

Acceptstringrequired

The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the response body.

Default "application/json"

Content-Typestringrequired

The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the request body.

Default "application/json"

Request body

Enter the body as JSON in the step's Body field.

titlestringrequired

Title of this blog post.

urlstring

URL for the public blog post.

bodystringrequired

Text body of the blog post.

tagsarray<string>

Tags to characterize the blog post.

is_publishedboolean

Whether the blog post is published.

meta_descriptionstring

Description text for this blog post’s `<meta/>` element.

meta_keywordsstring

Keywords for this blog post’s `<meta/>` element.

authorstring

Name of the blog post’s author.

thumbnail_pathstring

Local path to a thumbnail uploaded to `/product_images/` via [WebDav](https://support.bigcommerce.com/s/article/File-Access-WebDAV).

published_datestring
json
{
  "title": "Welcome to BigCommerce",
  "body": "<p>Customize your site, manage shipping and payments, and list your products on Amazon, eBay, and Facebook by Meta with the #1 ecommerce platform. </p>",
  "url": "/blog/welcome-bigcommerce/",
  "tags": [
    "string"
  ],
  "is_published": true,
  "meta_description": "Welcome Post",
  "meta_keywords": "BigCommerce, welcome, ecommerce",
  "author": "BigCommerce",
  "thumbnail_path": "string",
  "published_date": "Wed, 10 Aug 2022 15:39:15 -0500"
}

Response

Returns 200 with an object. Read it in later steps with {{updateABlogPost.response.data.<field>}}.

titlestring

Title of this blog post.

urlstring

URL for the public blog post.

preview_urlstring

URL to preview the blog post. (READ-ONLY)

bodystring

Text body of the blog post.

tagsarray<string>

Tags to characterize the blog post.

summarystring

Summary of the blog post. (READ-ONLY)

is_publishedboolean

Whether the blog post is published.

published_dateobject
timezone_typeinteger
datestring (date-time)
timezonestring
published_date_iso8601string

Published date in `ISO 8601` format.

meta_descriptionstring

Description text for this blog post’s `<meta/>` element.

meta_keywordsstring

Keywords for this blog post’s `<meta/>` element.

authorstring

Name of the blog post’s author.

thumbnail_pathstring

Local path to a thumbnail uploaded to `/product_images/` via [WebDav](https://support.bigcommerce.com/s/article/File-Access-WebDAV).

json
{
  "title": "Welcome to BigCommerce",
  "url": "/blog/welcome-bigcommerce/",
  "preview_url": "/blog/welcome-bigcommerce/",
  "body": "<p>Customize your site, manage shipping and payments, and list your products on Amazon, eBay, and Facebook by Meta with the #1 ecommerce platform. </p>",
  "tags": [
    "string"
  ],
  "summary": "<p>We power ecommerce websites for successful retailers all over the world</p>",
  "is_published": true,
  "published_date": {
    "timezone_type": 1,
    "date": "2022-08-10 14:39:15.000000",
    "timezone": "+00:00"
  },
  "published_date_iso8601": "5/18/2018 1:26:42 PM",
  "meta_description": "Welcome Post",
  "meta_keywords": "BigCommerce, welcome, ecommerce",
  "author": "BigCommerce"
}

Need more? See the BigCommerce Content guide for connection setup and behaviour shared by every action.

Was this page helpful?