POST api/NewsFeed/PostNewsFeed

Добавить, требуется авторизация

Request Information

URI Parameters

None.

Body Parameters

NewsFeedAddData
NameDescriptionTypeAdditional information
description

Текст

string

Required

category_rid

Категория вопроса, он сейчас главный список

integer

None.

tags

Тэги

Collection of integer

None.

anonim

Анонимно

boolean

None.

interview

Анонимно

boolean

None.

answers

Варианты ответа, максимальная длина 100 символов

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "description": "sample string 1",
  "category_rid": 1,
  "tags": [
    1,
    2
  ],
  "anonim": true,
  "interview": true,
  "answers": [
    "sample string 1",
    "sample string 2"
  ]
}

text/html

Sample:
{"description":"sample string 1","category_rid":1,"tags":[1,2],"anonim":true,"interview":true,"answers":["sample string 1","sample string 2"]}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseModelAdd
NameDescriptionTypeAdditional information
record_id

Идентификатор

integer

None.

success

Успешность запроса true, false

boolean

None.

Errors

Ошибка запроса

Collection of string

None.

result

Объект

Object

None.

new_level

Новый уровень

integer

None.

add_bonus

Добавленный бонус

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "record_id": 1,
  "success": true,
  "Errors": [
    "sample string 1",
    "sample string 2"
  ],
  "result": {},
  "new_level": 1,
  "add_bonus": 1.0
}

text/html

Sample:
{"record_id":1,"success":true,"Errors":["sample string 1","sample string 2"],"result":{},"new_level":1,"add_bonus":1.0}