POST api/Document/SaveFiles

Request Information

URI Parameters

None.

Body Parameters

Collection of Document
NameDescriptionTypeAdditional information
FileName

string

None.

Path

string

None.

Afdeling

Afdeling

None.

ShowOnFrontPage

boolean

None.

Counter

integer

None.

Status

Status

None.

Id

integer

None.

Created

date

None.

CreatedBy

string

None.

Modified

date

None.

ModifiedBy

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "FileName": "sample string 1",
    "Path": "sample string 2",
    "Afdeling": 0,
    "ShowOnFrontPage": true,
    "Counter": 4,
    "Status": 0,
    "Id": 5,
    "Created": "2024-04-24T01:39:01.3498842+02:00",
    "CreatedBy": "sample string 6",
    "Modified": "2024-04-24T01:39:01.3498842+02:00",
    "ModifiedBy": "sample string 7"
  },
  {
    "FileName": "sample string 1",
    "Path": "sample string 2",
    "Afdeling": 0,
    "ShowOnFrontPage": true,
    "Counter": 4,
    "Status": 0,
    "Id": 5,
    "Created": "2024-04-24T01:39:01.3498842+02:00",
    "CreatedBy": "sample string 6",
    "Modified": "2024-04-24T01:39:01.3498842+02:00",
    "ModifiedBy": "sample string 7"
  }
]

application/xml, text/xml

Sample:
<ArrayOfDocument xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Model">
  <Document>
    <Created xmlns="http://schemas.datacontract.org/2004/07/Model.Base">2024-04-24T01:39:01.3498842+02:00</Created>
    <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Model.Base">sample string 6</CreatedBy>
    <Id xmlns="http://schemas.datacontract.org/2004/07/Model.Base">5</Id>
    <Modified xmlns="http://schemas.datacontract.org/2004/07/Model.Base">2024-04-24T01:39:01.3498842+02:00</Modified>
    <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/Model.Base">sample string 7</ModifiedBy>
    <Afdeling>Håndbold</Afdeling>
    <Counter>4</Counter>
    <FileName>sample string 1</FileName>
    <Path>sample string 2</Path>
    <ShowOnFrontPage>true</ShowOnFrontPage>
    <Status>Aktiv</Status>
  </Document>
  <Document>
    <Created xmlns="http://schemas.datacontract.org/2004/07/Model.Base">2024-04-24T01:39:01.3498842+02:00</Created>
    <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Model.Base">sample string 6</CreatedBy>
    <Id xmlns="http://schemas.datacontract.org/2004/07/Model.Base">5</Id>
    <Modified xmlns="http://schemas.datacontract.org/2004/07/Model.Base">2024-04-24T01:39:01.3498842+02:00</Modified>
    <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/Model.Base">sample string 7</ModifiedBy>
    <Afdeling>Håndbold</Afdeling>
    <Counter>4</Counter>
    <FileName>sample string 1</FileName>
    <Path>sample string 2</Path>
    <ShowOnFrontPage>true</ShowOnFrontPage>
    <Status>Aktiv</Status>
  </Document>
</ArrayOfDocument>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ServiceResultOfBoolean
NameDescriptionTypeAdditional information
Success

boolean

None.

ErrorMessage

string

None.

SuccessMessage

string

None.

Result

boolean

None.

StatusCode

HttpStatusCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "ErrorMessage": "sample string 2",
  "SuccessMessage": "sample string 3",
  "Result": true,
  "StatusCode": 100
}

application/xml, text/xml

Sample:
<ServiceResultOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Model">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Result>true</Result>
  <StatusCode>Continue</StatusCode>
  <Success>true</Success>
  <SuccessMessage>sample string 3</SuccessMessage>
</ServiceResultOfboolean>