POST api/Common/PushNotificationToken?token={token}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

None.

string

Required

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": "6ae42d60-43fd-40e5-b6b8-98276a8f165a",
    "OwnerName": "sample string 7",
    "OwnerSurname": "sample string 8",
    "AttachmentDate": "2025-05-03T09:30:33+08:00"
  },
  {
    "Id": 1,
    "Name": "sample string 2",
    "Extension": "sample string 3",
    "Uri": "http://webapihelppage4.com",
    "Size": 5,
    "Guid": "6ae42d60-43fd-40e5-b6b8-98276a8f165a",
    "OwnerName": "sample string 7",
    "OwnerSurname": "sample string 8",
    "AttachmentDate": "2025-05-03T09:30:33+08:00"
  }
]

text/html, multipart/form-data

Sample:
[{"Id":1,"Name":"sample string 2","Extension":"sample string 3","Uri":"http://webapihelppage4.com","Size":5,"Guid":"6ae42d60-43fd-40e5-b6b8-98276a8f165a","OwnerName":"sample string 7","OwnerSurname":"sample string 8","AttachmentDate":"2025-05-03T09:30:33+08:00"},{"Id":1,"Name":"sample string 2","Extension":"sample string 3","Uri":"http://webapihelppage4.com","Size":5,"Guid":"6ae42d60-43fd-40e5-b6b8-98276a8f165a","OwnerName":"sample string 7","OwnerSurname":"sample string 8","AttachmentDate":"2025-05-03T09:30:33+08: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>2025-05-03T09:30:33.4958415+08:00</AttachmentDate>
    <Extension>sample string 3</Extension>
    <Guid>6ae42d60-43fd-40e5-b6b8-98276a8f165a</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>2025-05-03T09:30:33.4958415+08:00</AttachmentDate>
    <Extension>sample string 3</Extension>
    <Guid>6ae42d60-43fd-40e5-b6b8-98276a8f165a</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>