Get Started
Usage API
More information

POST api/2.0/community/blog This function requires authentication

Description

Creates a blog post with the specified title, content, tags and subscription to comments defined in the request body.

Parameters
Name Description Type Example
title
sent in body
Post title string some text
content
sent in body
Post text string some text
tags
sent in body
List of tags separated with comma string some text
subscribeComments
sent in body
Subscribes to the post comments Bool value true
Example
Sending data in application/json:
            
            {
                 title:"My post",
                 content:"Post content",
                 tags:"Me,Post,News",
                 subscribeComments: "true"
            }
            
            Sending data in application/x-www-form-urlencoded
            title="My post"&content="Post content"&tags="Me,Post,News"&subscribeComments="true"
Returns

Newly created post

Example Response

application/json

{
  "status": 0,
  "response": {
    "id": "00000000-0000-0000-0000-000000000000",
    "title": "Example post",
    "created": "2021-12-02T05:36:19.8515370Z",
    "updated": "2021-12-02T05:36:19.8515370Z",
    "createdBy": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "tags": [
      "Tag1",
      "Tag2"
    ],
    "text": "Post text"
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <id>00000000-0000-0000-0000-000000000000</id>
    <title>Example post</title>
    <created>2021-12-02T05:36:19.8515370Z</created>
    <updated>2021-12-02T05:36:19.8515370Z</updated>
    <createdBy>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </createdBy>
    <tags>Tag1</tags>
    <tags>Tag2</tags>
    <text>Post text</text>
  </response>
</result>