---
updatedAt: 2025-06-04T21:28:24.000Z
agentTools:
  projectIndex: https://developer.simpplr.com/llms.txt
---

# Create a Blog

Use this API to create a Blog.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "simpplr-api-gateway",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.ec.simpplr.com/api"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/blogs": {
      "post": {
        "summary": "Create a Blog",
        "description": "Use this API to create a Blog.",
        "operationId": "create-a-blog",
        "parameters": [
          {
            "name": "x-user-email",
            "in": "header",
            "description": "User's email to login into Salesforce",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "publish-at",
                  "title"
                ],
                "properties": {
                  "publish-at": {
                    "type": "string",
                    "description": "Date time at which this Blog should be published(Format: YYYY-MM-DDTHH:MM:SS+05:30)"
                  },
                  "title": {
                    "type": "string",
                    "description": "Title of the Blog",
                    "default": "My first Blog"
                  },
                  "body": {
                    "type": "string",
                    "description": "Body of the Blog",
                    "default": "<p>This is my first Blog</p>\","
                  },
                  "summary": {
                    "type": "string",
                    "description": "Summary of the Blog",
                    "default": "Hi,This is my first Blog in Simpplr"
                  },
                  "site-id": {
                    "type": "string",
                    "description": "Site id in which blog need to be created",
                    "default": "a115e000002Cs4ZAAS"
                  },
                  "is-feed-enabled": {
                    "type": "boolean",
                    "description": "Is feed enabled for this blog",
                    "default": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"statusCode\": 200,\n    \"status\": \"success\",\n    \"message\": \"\",\n    \"data\": {\n        \"usefulContent\": {\n            \"hasUserRated\": false,\n            \"canViewHistory\": true\n        },\n        \"url\": \"https://ajay-hada-dev-ed--c.visualforce.com/apex/app?u=/people/a115e000002FFncAAG/blog/a185e000000GDseAAG\",\n        \"type\": \"blogpost\",\n        \"title\": \"Api Demo Shourya  1000\",\n        \"summary\": \"Hello Hi am New member .\",\n        \"status\": \"published\",\n        \"recentViewCount\": 0,\n        \"publishAt\": \"2020-02-12T00:00:00.000+0530\",\n        \"postCount\": 0,\n        \"modifiedAt\": \"2021-11-30T11:27:40.000+0530\",\n        \"listOfTopics\": [],\n        \"listOfTopAlbumImages\": [],\n        \"listOfInlineVideos\": [],\n        \"listOfInlineImages\": [],\n        \"listOfFiles\": [],\n        \"likeCount\": 0,\n        \"lastModifiedDateTimeStamp\": 1638251860000,\n        \"isScheduled\": false,\n        \"isPublished\": true,\n        \"isOpenToNotification\": true,\n        \"isMustRead\": false,\n        \"isMaximumWidth\": false,\n        \"isLiked\": false,\n        \"isInSiteCarousel\": false,\n        \"isInHomeCarousel\": false,\n        \"isFeedEnabled\": true,\n        \"isFavorited\": false,\n        \"id\": \"a185e000000GDseAAG\",\n        \"hasRead\": false,\n        \"firstPublishedAt\": \"2021-11-30T11:27:40.000+0530\",\n        \"favoriteContext\": \"BlogPost\",\n        \"excerpt\": \"Hello Hi am New member .\",\n        \"editUrl\": \"https://ajay-hada-dev-ed--c.visualforce.com/apex/app?u=/people/a115e000002FFncAAG/blog/a185e000000GDseAAG/edit\",\n        \"editedBy\": {},\n        \"createdAt\": \"2021-11-30T11:27:40.000+0530\",\n        \"contentId\": \"a185e000000GDseAAG\",\n        \"contentBodyUrl\": \"https://ajay-hada-dev-ed--c.visualforce.com/apex/ContentBody?contentId=a185e000000GDseAAG\",\n        \"canPublishUnpublish\": true,\n        \"canModerate\": true,\n        \"canMakeMustRead\": true,\n        \"canEdit\": true,\n        \"canDelete\": true,\n        \"body\": \"<p>This is first Blog</p>\",\n        \"authoredBy\": {\n            \"userId\": \"0055e000006GG3JAAW\",\n            \"url\": \"https://ajay-hada-dev-ed--c.visualforce.com/apex/app?u=/people/a115e000002FFncAAG\",\n            \"peopleId\": \"a115e000002FFncAAG\",\n            \"name\": \"Arun Cherian\",\n            \"location\": \"\",\n            \"lastName\": \"Cherian\",\n            \"isProtectedAuthor\": false,\n            \"isFollowing\": false,\n            \"isActive\": true,\n            \"id\": \"a115e000002FFncAAG\",\n            \"firstName\": \"Arun\",\n            \"canFollow\": false\n        },\n        \"addedToSegmentCarouselList\": []\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "example": 200,
                      "default": 0
                    },
                    "status": {
                      "type": "string",
                      "example": "success"
                    },
                    "message": {
                      "type": "string",
                      "example": ""
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "usefulContent": {
                          "type": "object",
                          "properties": {
                            "hasUserRated": {
                              "type": "boolean",
                              "example": false,
                              "default": true
                            },
                            "canViewHistory": {
                              "type": "boolean",
                              "example": true,
                              "default": true
                            }
                          }
                        },
                        "url": {
                          "type": "string",
                          "example": "https://ajay-hada-dev-ed--c.visualforce.com/apex/app?u=/people/a115e000002FFncAAG/blog/a185e000000GDseAAG"
                        },
                        "type": {
                          "type": "string",
                          "example": "blogpost"
                        },
                        "title": {
                          "type": "string",
                          "example": "Api Demo Shourya  1000"
                        },
                        "summary": {
                          "type": "string",
                          "example": "Hello Hi am New member ."
                        },
                        "status": {
                          "type": "string",
                          "example": "published"
                        },
                        "recentViewCount": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "publishAt": {
                          "type": "string",
                          "example": "2020-02-12T00:00:00.000+0530"
                        },
                        "postCount": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "modifiedAt": {
                          "type": "string",
                          "example": "2021-11-30T11:27:40.000+0530"
                        },
                        "listOfTopics": {
                          "type": "array"
                        },
                        "listOfTopAlbumImages": {
                          "type": "array"
                        },
                        "listOfInlineVideos": {
                          "type": "array"
                        },
                        "listOfInlineImages": {
                          "type": "array"
                        },
                        "listOfFiles": {
                          "type": "array"
                        },
                        "likeCount": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "lastModifiedDateTimeStamp": {
                          "type": "integer",
                          "example": 1638251860000,
                          "default": 0
                        },
                        "isScheduled": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "isPublished": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "isOpenToNotification": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "isMustRead": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "isMaximumWidth": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "isLiked": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "isInSiteCarousel": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "isInHomeCarousel": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "isFeedEnabled": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "isFavorited": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "id": {
                          "type": "string",
                          "example": "a185e000000GDseAAG"
                        },
                        "hasRead": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "firstPublishedAt": {
                          "type": "string",
                          "example": "2021-11-30T11:27:40.000+0530"
                        },
                        "favoriteContext": {
                          "type": "string",
                          "example": "BlogPost"
                        },
                        "excerpt": {
                          "type": "string",
                          "example": "Hello Hi am New member ."
                        },
                        "editUrl": {
                          "type": "string",
                          "example": "https://ajay-hada-dev-ed--c.visualforce.com/apex/app?u=/people/a115e000002FFncAAG/blog/a185e000000GDseAAG/edit"
                        },
                        "editedBy": {
                          "type": "object",
                          "properties": {}
                        },
                        "createdAt": {
                          "type": "string",
                          "example": "2021-11-30T11:27:40.000+0530"
                        },
                        "contentId": {
                          "type": "string",
                          "example": "a185e000000GDseAAG"
                        },
                        "contentBodyUrl": {
                          "type": "string",
                          "example": "https://ajay-hada-dev-ed--c.visualforce.com/apex/ContentBody?contentId=a185e000000GDseAAG"
                        },
                        "canPublishUnpublish": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "canModerate": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "canMakeMustRead": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "canEdit": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "canDelete": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "body": {
                          "type": "string",
                          "example": "<p>This is first Blog</p>"
                        },
                        "authoredBy": {
                          "type": "object",
                          "properties": {
                            "userId": {
                              "type": "string",
                              "example": "0055e000006GG3JAAW"
                            },
                            "url": {
                              "type": "string",
                              "example": "https://ajay-hada-dev-ed--c.visualforce.com/apex/app?u=/people/a115e000002FFncAAG"
                            },
                            "peopleId": {
                              "type": "string",
                              "example": "a115e000002FFncAAG"
                            },
                            "name": {
                              "type": "string",
                              "example": "Arun Cherian"
                            },
                            "location": {
                              "type": "string",
                              "example": ""
                            },
                            "lastName": {
                              "type": "string",
                              "example": "Cherian"
                            },
                            "isProtectedAuthor": {
                              "type": "boolean",
                              "example": false,
                              "default": true
                            },
                            "isFollowing": {
                              "type": "boolean",
                              "example": false,
                              "default": true
                            },
                            "isActive": {
                              "type": "boolean",
                              "example": true,
                              "default": true
                            },
                            "id": {
                              "type": "string",
                              "example": "a115e000002FFncAAG"
                            },
                            "firstName": {
                              "type": "string",
                              "example": "Arun"
                            },
                            "canFollow": {
                              "type": "boolean",
                              "example": false,
                              "default": true
                            }
                          }
                        },
                        "addedToSegmentCarouselList": {
                          "type": "array"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"status\": \"error\",\n    \"message\": \"SESSION_TIMEOUT\",\n    \"i18nmessage\": \"SESSION_TIMEOUT\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "error"
                    },
                    "message": {
                      "type": "string",
                      "example": "SESSION_TIMEOUT"
                    },
                    "i18nmessage": {
                      "type": "string",
                      "example": "SESSION_TIMEOUT"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```