Spurtcommerce
DocumentAPI ReferenceAdd-ons
API Reference
API Reference
  • About Spurtcommerce APIs
  • Spurtcommerce
    • Admin API
      • Admin
        • Authentication
        • My Profile
        • Support
      • Buyers
        • Manage Buyer
      • Chat
      • CMS
        • Manage Banner
        • Manage Blogs
        • Manage Pages
        • Manage SEO
      • Dashboard
      • Marketing
        • Manage Cross Selling
          • Related Products
        • Manage Promotions
          • Coupon
      • Marketplace
        • Manage Products
        • Manage Sales
        • Manage Settlements
        • Product Configuration
        • Reports
      • Sellers
        • Seller
        • Seller Group
        • Seller KYC Request
      • Settings
        • Add-ons
        • Add-ons Product Attributes
        • Localization
        • Order Fulfilment Status
        • Personalise
        • Site Settings
        • Store Settings
        • System
        • User and Permission
        • Support-Category
    • Store API
      • Account Settings
        • Customer
        • My Order
        • My Quotation
        • My Wishlist
        • Profile
        • Support
      • Checkouts
      • Store
        • Admin Contact
        • Categories
        • Home
        • Product Detail Page
    • Vendor API
      • Page 1
      • Catalogue
        • Bulk Product Imports
          • Custom
          • Standard
        • Common Product
        • Data Export
        • Pricing
        • Product Localisation
        • Product List
        • Product Variants
        • Related Products
      • CRM
        • Customer
        • Customer Group
        • Question and Answer
        • Rating and Review
      • Dashboard
      • Marketing
      • Payments
        • Archeived Payments
        • Earnings
        • Settlements
      • Profile
        • Account Settings
          • My Business
          • My KYC
          • My Profile
          • My Shop
          • Personalised Setting
        • Chat
        • Vendor
        • Support
      • Reports
      • Sales
        • Archeive Orders
        • Back Orders
        • Failed Orders
        • Orders
        • Quotation Request
        • Stock Update
        • Variant Stock Update
      • Supplier
        • Contact
        • Supplier
Powered by GitBook
On this page
  1. Spurtcommerce
  2. Admin API
  3. CMS

Manage Blogs

PreviousManage BannerNextManage Pages

Last updated 4 months ago

Get blog list

get

Retrieves a list of blogs based on the provided filters.

Query parameters
limitintegerOptional

The maximum number of blogs to return.

Default: 10
offsetintegerOptional

The number of blogs to skip before starting to collect the result set.

Default: 0
countintegerOptional

A flag to indicate whether to return the count of blogs.

Default: 0
Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200
Successfully retrieved the blog list.
400
Bad request due to invalid parameters.
500
Internal server error.
get
GET /backend/api/blog HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully got blog list.</message>
</object>

Delete a blog

delete

Deletes the blog entry identified by the given ID.

Path parameters
blogIdintegerRequired

The ID of the blog to delete.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200
Successfully deleted the blog.
404
Blog not found.
500
Internal server error.
delete
DELETE /backend/api/blog/{blogId} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully deleted Blog</message>
</object>

Get blog translation details

get

Retrieves the translation details of a specific blog by its ID.

Path parameters
blogIdintegerRequired

The ID of the blog to retrieve translation details for.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200
Successfully retrieved the blog translation details.
404
Blog translation details not found.
500
Internal server error.
get
GET /backend/api/blog-translation/blog/{blogId} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully got blog translation detail.</message>
</object>

Get blog category detail

get

Retrieves the details of a specific blog category by its ID.

Query parameters
blogCategoryIdintegerRequired

The ID of the blog category to retrieve details for.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200
Successfully retrieved the blog category detail.
404
Blog category not found.
500
Internal server error.
get
GET /backend/api/blog-category/blog-category-detail HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully got blog category detail.</message>
</object>
  • GETGet blog category list
  • POSTCreate a new blog category
  • GETGet blog list
  • POSTCreate a new blog
  • PUTUpdate a blog
  • DELETEDelete a blog
  • GETGet blog translation details
  • POSTCreate blog translations
  • GETGet blog category detail
  • PUTUpdate blog category status
  • PUTUpdate a blog category

Get blog category list

get

Retrieves a list of blog categories.

Responses
200
Successfully retrieved the blog category list.
500
Internal server error.
get
GET /backend/api/blog-category HTTP/1.1
Host: 139.59.67.17
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully got the blog category list.</message>
</object>

Create a new blog category

post

Creates a new blog category with the provided details.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
namestringRequiredExample: test
Responses
201
Successfully created new category.
400
Bad request due to invalid parameters.
500
Internal server error.
post
POST /backend/api/blog-category HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 15

"name='test'"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully created new category.</message>
</object>

Create a new blog

post

Creates a new blog entry with the provided details.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
titlestringRequiredExample: test
categoryIdintegerRequiredExample: 2
descriptionstringRequiredExample: <p>test</p>
imagestringRequired
relatedBlogIdinteger[]OptionalExample: 9
blogSlugstringRequiredExample: test
metaTitlestringOptional
metaContentstringOptional
metaKeywordstringOptional
Responses
201
Successfully created a new blog.
400
Bad request due to invalid parameters.
500
Internal server error.
post
POST /backend/api/blog HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 157

"title='test'&categoryId=2&description='<p>test</p>'&image=''&relatedBlogId=[9]&blogSlug='test'&metaTitle=''&metaContent=''&metaKeyword=''"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully created new blog.</message>
</object>

Update a blog

put

Updates the blog entry identified by the given ID.

Path parameters
blogIdintegerRequired

The ID of the blog to update.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
titlestringRequiredExample: test
categoryIdintegerRequiredExample: 2
descriptionstringRequiredExample: <p>test</p>
imagestringOptional
statusintegerOptionalExample: 1
relatedBlogIdinteger[]OptionalExample: 9
blogSlugstringRequiredExample: test
blogIdstringRequiredExample: 52
Responses
200
Successfully updated the blog.
400
Bad request due to invalid parameters.
404
Blog not found.
500
Internal server error.
put
PUT /backend/api/blog/{blogId} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 133

"title='test'&categoryId=2&description='<p>test</p>'&image=''&status=1&relatedBlogId=[9]&blogSlug='test'&blogId='52'"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully updated blog.</message>
</object>

Create blog translations

post

Creates translations for the blog identified by the given ID.

Path parameters
blogIdintegerRequired

The ID of the blog to create translations for.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
Responses
201
Successfully created new blog translation.
400
Bad request due to invalid parameters.
404
Blog not found.
500
Internal server error.
post
POST /backend/api/blog-translation/blog/{blogId} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 82

"blogTranslation=[{'languageId':57,'title':'test','description':'<p>test</p>'}]"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully created new blog translation.</message>
</object>

Update blog category status

put

Updates the status of the blog category identified by the given ID.

Path parameters
blogCategoryIdintegerRequired

The ID of the blog category to update.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
blogCategoryIdintegerRequiredExample: 19
statusintegerRequiredExample: 1
Responses
200
Successfully updated blog category status.
400
Bad request due to invalid parameters.
404
Blog category not found.
500
Internal server error.
put
PUT /backend/api/blog-category/update-blog-category-status/{blogCategoryId} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 32

"blogCategoryId=19&status=1"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully updated blog category status.</message>
</object>

Update a blog category

put

Updates the blog category identified by the given ID.

Path parameters
blogCategoryIdintegerRequired

The ID of the blog category to update.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
namestringRequiredExample: new categories
blogCategoryIdintegerRequiredExample: 14
Responses
200
Successfully updated the blog category.
400
Bad request due to invalid parameters.
404
Blog category not found.
500
Internal server error.
put
PUT /backend/api/blog-category/{blogCategoryId} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 45

"name='new categories'&blogCategoryId=14"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully updated category.</message>
</object>