POST api/KnowledgeBase

Создание ноды. Поддерживается в description создание картинки из base64

Request Information

URI Parameters

None.

Body Parameters

ManualTreeNodeInCreateViewModel
NameDescriptionTypeAdditional information
Name

Имя пункта меню дерева

string

None.

Parent

Родитель ноды

integer

None.

Description

Текст страницы

string

None.

OrderNum

Позиция

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Parent": 1,
  "Description": "sample string 2",
  "OrderNum": 3
}

text/html, multipart/form-data

Sample:
{"Name":"sample string 1","Parent":1,"Description":"sample string 2","OrderNum":3}

application/xml, text/xml

Sample:
<ManualTreeNodeInCreateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.KnowledgeBase">
  <Description>sample string 2</Description>
  <Name>sample string 1</Name>
  <OrderNum>3</OrderNum>
  <Parent>1</Parent>
</ManualTreeNodeInCreateViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Success Resource Description

Возвращает созданную ноду

ManualTreeNodeOutViewModel
NameDescriptionTypeAdditional information
Id

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

integer

None.

Name

Имя пункта меню дерева

string

None.

Parent

Родитель ноды

integer

None.

CreatedDate

Дата создания

date

None.

LastEditDate

Дата последнего редактирования

date

None.

Description

Текст страницы

string

None.

OrderNum

Позиция

integer

None.

TreePath

Полный путь иерархии родителей ноды

string

None.

IsRead

Пользователь может читать ноду

boolean

None.

IsEditor

Пользователь может редактировать ноду

boolean

None.

Error Resource Description (Реализовано не везде)

OperationResult
NameDescriptionTypeAdditional information
Target

Возвращаемый объект

Object

None.

Status

Статус операции

ResultStatus

None.

Error

Детализация ошибки

Error

None.

Response Formats

application/json, text/json, text/html, multipart/form-data

Sample:

Sample not available.