POST api/File/SaveDocument

Request Information

URI Parameters

None.

Body Parameters

Collection of DocFileEntityWS
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

IdSoggetto

globally unique identifier

None.

IdUtente

globally unique identifier

None.

TipoFile

string

None.

Titolo

string

None.

NomeFile

string

None.

DataCreazione

date

None.

DataUltimoAccesso

date

None.

Size

integer

None.

TagRicerca

string

None.

IdRiferimentoEsterno

globally unique identifier

None.

ZipFile

boolean

None.

IsValidExtension

boolean

None.

IsImage

boolean

None.

IsPdf

boolean

None.

IsDoc

boolean

None.

IsExcel

boolean

None.

FileContent

Collection of byte

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": "62584c09-3d85-49e2-b76f-6be2dd66fed3",
    "IdSoggetto": "61fef613-f48b-400b-956b-4db4521fe01a",
    "IdUtente": "9eea0782-ef73-4f70-8687-37b6a4778e55",
    "TipoFile": "sample string 3",
    "Titolo": "sample string 4",
    "NomeFile": "sample string 5",
    "DataCreazione": "2025-12-06T05:44:12.9875197+01:00",
    "DataUltimoAccesso": "2025-12-06T05:44:12.9875197+01:00",
    "Size": 7,
    "TagRicerca": "sample string 8",
    "IdRiferimentoEsterno": "2b7b9510-75fa-4ccd-ad79-904794f4e18b",
    "ZipFile": true,
    "IsValidExtension": false,
    "IsImage": false,
    "IsPdf": false,
    "IsDoc": false,
    "IsExcel": false,
    "FileContent": "QEA="
  },
  {
    "Id": "62584c09-3d85-49e2-b76f-6be2dd66fed3",
    "IdSoggetto": "61fef613-f48b-400b-956b-4db4521fe01a",
    "IdUtente": "9eea0782-ef73-4f70-8687-37b6a4778e55",
    "TipoFile": "sample string 3",
    "Titolo": "sample string 4",
    "NomeFile": "sample string 5",
    "DataCreazione": "2025-12-06T05:44:12.9875197+01:00",
    "DataUltimoAccesso": "2025-12-06T05:44:12.9875197+01:00",
    "Size": 7,
    "TagRicerca": "sample string 8",
    "IdRiferimentoEsterno": "2b7b9510-75fa-4ccd-ad79-904794f4e18b",
    "ZipFile": true,
    "IsValidExtension": false,
    "IsImage": false,
    "IsPdf": false,
    "IsDoc": false,
    "IsExcel": false,
    "FileContent": "QEA="
  }
]

application/xml, text/xml

Sample:
<ArrayOfDocFileEntityWS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AdlShared.WebServices.TypeDefinition">
  <DocFileEntityWS>
    <DataCreazione>2025-12-06T05:44:12.9875197+01:00</DataCreazione>
    <DataUltimoAccesso>2025-12-06T05:44:12.9875197+01:00</DataUltimoAccesso>
    <FileContent>QEA=</FileContent>
    <Id>62584c09-3d85-49e2-b76f-6be2dd66fed3</Id>
    <IdRiferimentoEsterno>2b7b9510-75fa-4ccd-ad79-904794f4e18b</IdRiferimentoEsterno>
    <IdSoggetto>61fef613-f48b-400b-956b-4db4521fe01a</IdSoggetto>
    <IdUtente>9eea0782-ef73-4f70-8687-37b6a4778e55</IdUtente>
    <NomeFile>sample string 5</NomeFile>
    <Size>7</Size>
    <TagRicerca>sample string 8</TagRicerca>
    <TipoFile>sample string 3</TipoFile>
    <Titolo>sample string 4</Titolo>
    <ZipFile>true</ZipFile>
  </DocFileEntityWS>
  <DocFileEntityWS>
    <DataCreazione>2025-12-06T05:44:12.9875197+01:00</DataCreazione>
    <DataUltimoAccesso>2025-12-06T05:44:12.9875197+01:00</DataUltimoAccesso>
    <FileContent>QEA=</FileContent>
    <Id>62584c09-3d85-49e2-b76f-6be2dd66fed3</Id>
    <IdRiferimentoEsterno>2b7b9510-75fa-4ccd-ad79-904794f4e18b</IdRiferimentoEsterno>
    <IdSoggetto>61fef613-f48b-400b-956b-4db4521fe01a</IdSoggetto>
    <IdUtente>9eea0782-ef73-4f70-8687-37b6a4778e55</IdUtente>
    <NomeFile>sample string 5</NomeFile>
    <Size>7</Size>
    <TagRicerca>sample string 8</TagRicerca>
    <TipoFile>sample string 3</TipoFile>
    <Titolo>sample string 4</Titolo>
    <ZipFile>true</ZipFile>
  </DocFileEntityWS>
</ArrayOfDocFileEntityWS>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ServiceResult
NameDescriptionTypeAdditional information
Result

string

None.

Errori

Collection of string

None.

IsSuccessful

boolean

None.

IsOnError

boolean

None.

ErrorString

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": "sample string 1",
  "Errori": [
    "sample string 1",
    "sample string 2"
  ],
  "IsSuccessful": false,
  "IsOnError": true,
  "ErrorString": "sample string 1, sample string 2"
}

application/xml, text/xml

Sample:
<ServiceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AdlShared.WebServices.TypeDefinition">
  <Errori xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errori>
  <Result>sample string 1</Result>
</ServiceResult>