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 or not 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",
    "Updated": "2020-12-06T07:36:14.7981820Z",
    "CreatedBy": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "DisplayName": "Mike Zanyatski",
      "Title": "Manager",
      "AvatarSmall": "url to small avatar",
      "ProfileUrl": "\\/Products\\/People\\/Profile.aspx?user=administrator"
    },
    "Tags": [
      "Tag1",
      "Tag2"
    ],
    "Text": "Post text",
    "Created": "2020-12-06T07:36:14.7981820Z"
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <Id>00000000-0000-0000-0000-000000000000</Id>
    <Title>Example post</Title>
    <Updated>2020-12-06T07:36:14.7981820Z</Updated>
    <CreatedBy>
      <Id>00000000-0000-0000-0000-000000000000</Id>
      <DisplayName>Mike Zanyatski</DisplayName>
      <Title>Manager</Title>
      <AvatarSmall>url to small avatar</AvatarSmall>
      <ProfileUrl>\/Products\/People\/Profile.aspx?user=administrator</ProfileUrl>
    </CreatedBy>
    <Tags>Tag1</Tags>
    <Tags>Tag2</Tags>
    <Text>Post text</Text>
    <Created>2020-12-06T07:36:14.7981820Z</Created>
  </response>
</result>