POST api/Report/GetAttachment

Request Information

URI Parameters

None.

Body Parameters

GetAttachmentRequest
NameDescriptionTypeAdditional information
idPriponka

globally unique identifier

None.

idReport

integer

None.

reportNumber

string

None.

Request Formats

application/json, text/json

Sample:
{
  "idPriponka": "6e8e311b-f2e8-4a14-addb-208d94eca68e",
  "idReport": 1,
  "reportNumber": "sample string 1"
}

application/xml, text/xml

Sample:
<GetAttachmentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NMP3000Api.Areas.Report.Model">
  <IdPriponka>6e8e311b-f2e8-4a14-addb-208d94eca68e</IdPriponka>
  <Id_Report>1</Id_Report>
  <ReportNumber>sample string 1</ReportNumber>
</GetAttachmentRequest>

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 'GetAttachmentRequest'.

Response Information

Resource Description

GetAttachmentResponse
NameDescriptionTypeAdditional information
attachment

Attachment

None.

mesasge

string

None.

isSuccess

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "attachment": {
    "PriponkaId": "b12798e6-6099-4502-a86d-363c28c35508",
    "Ime": "sample string 1",
    "Koncnica": "sample string 2",
    "Velikost": 1,
    "Podatki": "QEA=",
    "Ustvarjeno": "2026-02-02T15:22:01.8178854+01:00",
    "Aktivna": true,
    "VrstaPriponke": "sample string 3"
  },
  "mesasge": "sample string 1",
  "isSuccess": true
}

application/xml, text/xml

Sample:
<GetAttachmentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NMP3000Api.Areas.Report.Model">
  <IsSuccess xmlns="http://schemas.datacontract.org/2004/07/NMP3000Api.Models">true</IsSuccess>
  <Mesasge xmlns="http://schemas.datacontract.org/2004/07/NMP3000Api.Models">sample string 1</Mesasge>
  <Attachment>
    <Aktivna>true</Aktivna>
    <Ime>sample string 1</Ime>
    <Koncnica>sample string 2</Koncnica>
    <Podatki>QEA=</Podatki>
    <PriponkaId>b12798e6-6099-4502-a86d-363c28c35508</PriponkaId>
    <Ustvarjeno>2026-02-02T15:22:01.8178854+01:00</Ustvarjeno>
    <Velikost>1</Velikost>
    <VrstaPriponke>sample string 3</VrstaPriponke>
  </Attachment>
</GetAttachmentResponse>