POST api/Common/Attachments/Upload

Сохраняет файлы во временное хранилище

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Success Resource Description

Collection of FileInfoViewModel
NameDescriptionTypeAdditional information
Id

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

integer

None.

Name

Наименование файла

string

None.

Extension

Расширение файла

string

None.

Uri

ссылка на файл

URI

None.

Size

Размер файла

integer

None.

Guid

уникальная метка вложенного файла

globally unique identifier

None.

OwnerName

Имя владельца вложения

string

None.

OwnerSurname

Фамилия владельца вложения

string

None.

AttachmentDate

Дата прикрепления вложения

date

None.

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

OperationResult
NameDescriptionTypeAdditional information
Target

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

Object

None.

Status

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

ResultStatus

None.

Error

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

Error

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Name": "sample string 2",
    "Extension": "sample string 3",
    "Uri": "http://webapihelppage4.com",
    "Size": 5,
    "Guid": "3ca2eccb-f998-438d-ba73-3ee180a8a734",
    "OwnerName": "sample string 7",
    "OwnerSurname": "sample string 8",
    "AttachmentDate": "2022-08-17T03:23:57+03:00"
  },
  {
    "Id": 1,
    "Name": "sample string 2",
    "Extension": "sample string 3",
    "Uri": "http://webapihelppage4.com",
    "Size": 5,
    "Guid": "3ca2eccb-f998-438d-ba73-3ee180a8a734",
    "OwnerName": "sample string 7",
    "OwnerSurname": "sample string 8",
    "AttachmentDate": "2022-08-17T03:23:57+03:00"
  }
]

text/html, multipart/form-data

Sample:
[{"Id":1,"Name":"sample string 2","Extension":"sample string 3","Uri":"http://webapihelppage4.com","Size":5,"Guid":"3ca2eccb-f998-438d-ba73-3ee180a8a734","OwnerName":"sample string 7","OwnerSurname":"sample string 8","AttachmentDate":"2022-08-17T03:23:57+03:00"},{"Id":1,"Name":"sample string 2","Extension":"sample string 3","Uri":"http://webapihelppage4.com","Size":5,"Guid":"3ca2eccb-f998-438d-ba73-3ee180a8a734","OwnerName":"sample string 7","OwnerSurname":"sample string 8","AttachmentDate":"2022-08-17T03:23:57+03:00"}]

application/xml, text/xml

Sample:
<ArrayOfFileInfoViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Common">
  <FileInfoViewModel>
    <AttachmentDate>2022-08-17T03:23:57.0438717+03:00</AttachmentDate>
    <Extension>sample string 3</Extension>
    <Guid>3ca2eccb-f998-438d-ba73-3ee180a8a734</Guid>
    <Id>1</Id>
    <Name>sample string 2</Name>
    <OwnerName>sample string 7</OwnerName>
    <OwnerSurname>sample string 8</OwnerSurname>
    <Size>5</Size>
    <Uri>http://webapihelppage4.com/</Uri>
  </FileInfoViewModel>
  <FileInfoViewModel>
    <AttachmentDate>2022-08-17T03:23:57.0438717+03:00</AttachmentDate>
    <Extension>sample string 3</Extension>
    <Guid>3ca2eccb-f998-438d-ba73-3ee180a8a734</Guid>
    <Id>1</Id>
    <Name>sample string 2</Name>
    <OwnerName>sample string 7</OwnerName>
    <OwnerSurname>sample string 8</OwnerSurname>
    <Size>5</Size>
    <Uri>http://webapihelppage4.com/</Uri>
  </FileInfoViewModel>
</ArrayOfFileInfoViewModel>