POST Discuss/BotPost

Request Information

URI Parameters

None.

Body Parameters

BotPostDiscussionForm
NameDescriptionTypeAdditional information
attachedActions

Кнопки / действия

Collection of AttachmentEntityCreateForm

None.

author

Имперсонификация (по умолчанию 1 - от пользователя, 2 - имперсонификация группой)

PostAuthor

None.

sharer

Данные с внешней страницы (сниппет)

SharerDataForm

None.

directedAccess

Настройки направленного комментария

DirectedAccessForm

None.

messageFormat

Формат вывода текста

MessageFormat

None.

parentId

Идентификатор родительского комментария

integer

None.

eventId

Идентификатор события

integer

None.

subscribe

надо ли подписаться на событие

boolean

None.

actions

действия для пользователей, которые надо сделать сразу после создания сущности

Collection of AfterPostActionForm

None.

postText

текст события

string

None.

files

Идентификаторы файлов (в сервисе files.webmoney.ru), которые надо прикрепить

Collection of string

None.

editorMode

PostEditorMode

None.

Request Formats

application/json, text/json

Sample:
{
  "attachedActions": [
    {
      "actions": [
        {
          "data": null,
          "uid": "sample string 1",
          "type": 0
        },
        {
          "data": null,
          "uid": "sample string 1",
          "type": 0
        }
      ],
      "uid": "sample string 1",
      "title": "sample string 2",
      "type": 0
    },
    {
      "actions": [
        {
          "data": null,
          "uid": "sample string 1",
          "type": 0
        },
        {
          "data": null,
          "uid": "sample string 1",
          "type": 0
        }
      ],
      "uid": "sample string 1",
      "title": "sample string 2",
      "type": 0
    }
  ],
  "author": 1,
  "sharer": {
    "uid": "sample string 1",
    "url": "sample string 2",
    "title": "sample string 3",
    "desc": "sample string 4",
    "image": "sample string 5",
    "video": {
      "id": "sample string 1",
      "type": 0
    }
  },
  "directedAccess": {
    "wmids": [
      "sample string 1",
      "sample string 2"
    ]
  },
  "messageFormat": 0,
  "parentId": 2,
  "eventId": 3,
  "subscribe": true,
  "actions": [
    {
      "wmid": "sample string 1",
      "action": 1
    },
    {
      "wmid": "sample string 1",
      "action": 1
    }
  ],
  "postText": "sample string 6",
  "files": [
    "sample string 1",
    "sample string 2"
  ],
  "editorMode": 0
}

Response Information

Resource Description

DiscussPostView
NameDescriptionTypeAdditional information
newDiscuss

DiscussView

None.

countReaded

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "newDiscuss": {
    "childs": [],
    "id": 1,
    "parentId": 1,
    "eventId": 2,
    "datecreated": "sample string 3",
    "datecreatedstr": "sample string 4",
    "datelastupdatedticks": 5,
    "deleted": 1,
    "deletedStr": "discussAuthor",
    "edited": true,
    "message": "sample string 7",
    "isnew": true,
    "seen": true,
    "author": {
      "attestat": "sample string 1",
      "attestatCode": 1,
      "bl": 1,
      "tl": 2,
      "cl": 1,
      "Gender": 0,
      "GenderStr": "female",
      "lastLoginDate": "sample string 3",
      "lastLoginDateUtc": "sample string 4",
      "lastOnlineDate": "sample string 5",
      "lastOnlineDateUtc": "sample string 6",
      "status": 0,
      "statusStr": "active",
      "interactOpportunity": true,
      "userType": 0,
      "icon": {
        "id": "sample string 1",
        "isactive": true,
        "isDefault": true,
        "smallest": "sample string 4",
        "tiny": "sample string 5",
        "mini": "sample string 6",
        "small": "sample string 7",
        "normal": "sample string 8",
        "large": "sample string 9",
        "big": "sample string 10",
        "original": "sample string 11",
        "url": "sample string 12"
      },
      "nickname": "sample string 8",
      "wmid": "sample string 9"
    },
    "attachments": [
      {
        "type": 0,
        "typeStr": "image",
        "typeAdditionally": 0,
        "typeAdditionallyStr": "unknown",
        "id": "sample string 1",
        "name": "sample string 2",
        "sha1": "sample string 3",
        "size": 4,
        "contentType": "sample string 5",
        "versions": {
          "sample string 1": "sample string 2",
          "sample string 3": "sample string 4"
        }
      },
      {
        "type": 0,
        "typeStr": "image",
        "typeAdditionally": 0,
        "typeAdditionallyStr": "unknown",
        "id": "sample string 1",
        "name": "sample string 2",
        "sha1": "sample string 3",
        "size": 4,
        "contentType": "sample string 5",
        "versions": {
          "sample string 1": "sample string 2",
          "sample string 3": "sample string 4"
        }
      }
    ],
    "share": {
      "url": "sample string 1",
      "title": "sample string 2",
      "desc": "sample string 3",
      "type": 0,
      "typeStr": "image",
      "mediaId": "sample string 4",
      "versions": {
        "sample string 1": "sample string 2",
        "sample string 3": "sample string 4"
      },
      "id": 5
    },
    "actions": [
      "sample string 1",
      "sample string 2"
    ],
    "behalf": 1,
    "behalfStr": "user",
    "directedAccess": [
      {
        "attestat": "sample string 1",
        "attestatCode": 1,
        "bl": 1,
        "tl": 2,
        "cl": 1,
        "Gender": 0,
        "GenderStr": "female",
        "lastLoginDate": "sample string 3",
        "lastLoginDateUtc": "sample string 4",
        "lastOnlineDate": "sample string 5",
        "lastOnlineDateUtc": "sample string 6",
        "status": 0,
        "statusStr": "active",
        "interactOpportunity": true,
        "userType": 0,
        "icon": {
          "id": "sample string 1",
          "isactive": true,
          "isDefault": true,
          "smallest": "sample string 4",
          "tiny": "sample string 5",
          "mini": "sample string 6",
          "small": "sample string 7",
          "normal": "sample string 8",
          "large": "sample string 9",
          "big": "sample string 10",
          "original": "sample string 11",
          "url": "sample string 12"
        },
        "nickname": "sample string 8",
        "wmid": "sample string 9"
      },
      {
        "attestat": "sample string 1",
        "attestatCode": 1,
        "bl": 1,
        "tl": 2,
        "cl": 1,
        "Gender": 0,
        "GenderStr": "female",
        "lastLoginDate": "sample string 3",
        "lastLoginDateUtc": "sample string 4",
        "lastOnlineDate": "sample string 5",
        "lastOnlineDateUtc": "sample string 6",
        "status": 0,
        "statusStr": "active",
        "interactOpportunity": true,
        "userType": 0,
        "icon": {
          "id": "sample string 1",
          "isactive": true,
          "isDefault": true,
          "smallest": "sample string 4",
          "tiny": "sample string 5",
          "mini": "sample string 6",
          "small": "sample string 7",
          "normal": "sample string 8",
          "large": "sample string 9",
          "big": "sample string 10",
          "original": "sample string 11",
          "url": "sample string 12"
        },
        "nickname": "sample string 8",
        "wmid": "sample string 9"
      }
    ],
    "attachedActions": [
      {
        "dateCreated": "sample string 1",
        "dateCreatedStr": "sample string 2",
        "actions": [
          {
            "data": {},
            "uid": "sample string 2",
            "type": 0
          },
          {
            "data": {},
            "uid": "sample string 2",
            "type": 0
          }
        ],
        "readOnlyType": 0,
        "uid": "sample string 3",
        "title": "sample string 4",
        "type": 0
      },
      {
        "dateCreated": "sample string 1",
        "dateCreatedStr": "sample string 2",
        "actions": [
          {
            "data": {},
            "uid": "sample string 2",
            "type": 0
          },
          {
            "data": {},
            "uid": "sample string 2",
            "type": 0
          }
        ],
        "readOnlyType": 0,
        "uid": "sample string 3",
        "title": "sample string 4",
        "type": 0
      }
    ],
    "type": 1,
    "commentType": 0,
    "authorBanned": true,
    "editorMode": 0
  },
  "countReaded": 1
}