POST api/LP/v3/Statement/AddType


Информация о запросе

Параметры URL

ИмяОписаниеТипДополнительная информация

Тело запроса

dtoStatementType
ИмяОписаниеТипДополнительная информация
Id

integer

Отсутствует.

Name

string

Отсутствует.

Key

string

Отсутствует.

Statuses

Коллекция dtoStatementStatus

Отсутствует.

Fields

Коллекция dtoStatementField

Отсутствует.

Формат запроса application/json

{
  "Id": 1,
  "Name": "sample string 2",
  "Key": "sample string 3",
  "Statuses": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Order": 3
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Order": 3
    }
  ],
  "Fields": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Order": 3,
      "Type": 0,
      "Source": [
        "sample string 1",
        "sample string 2"
      ],
      "Value": "sample string 4",
      "ListedAttachment": [
        {
          "Id": 1,
          "URL": "sample string 2",
          "RealName": "sample string 3",
          "Scale": 4.1,
          "Thumbnail": "sample string 5",
          "Type": 0,
          "IsMain": true
        },
        {
          "Id": 1,
          "URL": "sample string 2",
          "RealName": "sample string 3",
          "Scale": 4.1,
          "Thumbnail": "sample string 5",
          "Type": 0,
          "IsMain": true
        }
      ]
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Order": 3,
      "Type": 0,
      "Source": [
        "sample string 1",
        "sample string 2"
      ],
      "Value": "sample string 4",
      "ListedAttachment": [
        {
          "Id": 1,
          "URL": "sample string 2",
          "RealName": "sample string 3",
          "Scale": 4.1,
          "Thumbnail": "sample string 5",
          "Type": 0,
          "IsMain": true
        },
        {
          "Id": 1,
          "URL": "sample string 2",
          "RealName": "sample string 3",
          "Scale": 4.1,
          "Thumbnail": "sample string 5",
          "Type": 0,
          "IsMain": true
        }
      ]
    }
  ]
}

Информация об ответе

DefaultResponseOfdtoStatementType
ИмяОписаниеТипДополнительная информация
Success

boolean

Отсутствует.

ErrorCode

integer

Отсутствует.

ErrorMessage

string

Отсутствует.

Data

dtoStatementType

Отсутствует.

Формат ответа application/json

{
  "Success": true,
  "ErrorCode": 2,
  "ErrorMessage": "sample string 3",
  "Data": {
    "Id": 1,
    "Name": "sample string 2",
    "Key": "sample string 3",
    "Statuses": [
      {
        "Id": 1,
        "Name": "sample string 2",
        "Order": 3
      },
      {
        "Id": 1,
        "Name": "sample string 2",
        "Order": 3
      }
    ],
    "Fields": [
      {
        "Id": 1,
        "Name": "sample string 2",
        "Order": 3,
        "Type": 0,
        "Source": [
          "sample string 1",
          "sample string 2"
        ],
        "Value": "sample string 4",
        "ListedAttachment": [
          {
            "Id": 1,
            "URL": "sample string 2",
            "RealName": "sample string 3",
            "Scale": 4.1,
            "Thumbnail": "sample string 5",
            "Type": 0,
            "IsMain": true
          },
          {
            "Id": 1,
            "URL": "sample string 2",
            "RealName": "sample string 3",
            "Scale": 4.1,
            "Thumbnail": "sample string 5",
            "Type": 0,
            "IsMain": true
          }
        ]
      },
      {
        "Id": 1,
        "Name": "sample string 2",
        "Order": 3,
        "Type": 0,
        "Source": [
          "sample string 1",
          "sample string 2"
        ],
        "Value": "sample string 4",
        "ListedAttachment": [
          {
            "Id": 1,
            "URL": "sample string 2",
            "RealName": "sample string 3",
            "Scale": 4.1,
            "Thumbnail": "sample string 5",
            "Type": 0,
            "IsMain": true
          },
          {
            "Id": 1,
            "URL": "sample string 2",
            "RealName": "sample string 3",
            "Scale": 4.1,
            "Thumbnail": "sample string 5",
            "Type": 0,
            "IsMain": true
          }
        ]
      }
    ]
  }
}