POST api/usr/AnnouncementRepository/Add?serviceNumber={serviceNumber}&pbxUserId={pbxUserId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
serviceNumber

string

None.

pbxUserId

string

None.

Body Parameters

AnnouncementRepositoryFileDTO
NameDescriptionTypeAdditional information
FileSize

integer

None.

LastUploaded

date

None.

MediaTypeName

string

None.

Base64Content

Collection of byte

None.

SourceFile

string

None.

Name

string

None.

Services

Collection of AnnouncementRepositoryFileServiceDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "FileSize": 1,
  "LastUploaded": "2026-03-29T17:23:59.2168557-04:00",
  "MediaTypeName": "sample string 1",
  "Base64Content": "QEA=",
  "SourceFile": "sample string 2",
  "Name": "sample string 3",
  "Services": [
    {
      "ServiceName": "sample string 1"
    },
    {
      "ServiceName": "sample string 1"
    }
  ]
}

application/xml, text/xml

Sample:
<AnnouncementRepositoryFileDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MSPApi.DTO">
  <Base64Content>QEA=</Base64Content>
  <FileSize>1</FileSize>
  <LastUploaded>2026-03-29T17:23:59.2168557-04:00</LastUploaded>
  <MediaTypeName>sample string 1</MediaTypeName>
  <Name>sample string 3</Name>
  <Services>
    <AnnouncementRepositoryFileServiceDTO>
      <ServiceName>sample string 1</ServiceName>
    </AnnouncementRepositoryFileServiceDTO>
    <AnnouncementRepositoryFileServiceDTO>
      <ServiceName>sample string 1</ServiceName>
    </AnnouncementRepositoryFileServiceDTO>
  </Services>
  <SourceFile>sample string 2</SourceFile>
</AnnouncementRepositoryFileDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AnnouncementRepositoryFileDTO'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.