POST api/sync/jobfile

Request Information

URI Parameters

None.

Body Parameters

Collection of JobFileDTO
NameDescriptionTypeAdditional information
JobFileID

integer

None.

JobID

integer

None.

JobFileServerID

integer

None.

OneDriveFileID

string

None.

PresentedName

string

None.

FileName

string

None.

Description

string

None.

Active

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "JobFileID": 1,
    "JobID": 2,
    "JobFileServerID": 3,
    "OneDriveFileID": "sample string 4",
    "PresentedName": "sample string 5",
    "FileName": "sample string 6",
    "Description": "sample string 7",
    "Active": true
  },
  {
    "JobFileID": 1,
    "JobID": 2,
    "JobFileServerID": 3,
    "OneDriveFileID": "sample string 4",
    "PresentedName": "sample string 5",
    "FileName": "sample string 6",
    "Description": "sample string 7",
    "Active": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfJobFileDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EngineerSystem.Framework.DTO">
  <JobFileDTO>
    <Active>true</Active>
    <Description>sample string 7</Description>
    <FileName>sample string 6</FileName>
    <JobFileID>1</JobFileID>
    <JobFileServerID>3</JobFileServerID>
    <JobID>2</JobID>
    <OneDriveFileID>sample string 4</OneDriveFileID>
    <PresentedName>sample string 5</PresentedName>
  </JobFileDTO>
  <JobFileDTO>
    <Active>true</Active>
    <Description>sample string 7</Description>
    <FileName>sample string 6</FileName>
    <JobFileID>1</JobFileID>
    <JobFileServerID>3</JobFileServerID>
    <JobID>2</JobID>
    <OneDriveFileID>sample string 4</OneDriveFileID>
    <PresentedName>sample string 5</PresentedName>
  </JobFileDTO>
</ArrayOfJobFileDTO>

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 'List`1'.

Response Information

Resource Description

Collection of GenericResponse
NameDescriptionTypeAdditional information
ServerID

integer

None.

LocalID

integer

None.

LocalType

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ServerID": 1,
    "LocalID": 2,
    "LocalType": 3,
    "Message": "sample string 4"
  },
  {
    "ServerID": 1,
    "LocalID": 2,
    "LocalType": 3,
    "Message": "sample string 4"
  }
]

application/xml, text/xml

Sample:
<ArrayOfGenericResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SRAPI.Services">
  <GenericResponse>
    <LocalID>2</LocalID>
    <LocalType>3</LocalType>
    <Message>sample string 4</Message>
    <ServerID>1</ServerID>
  </GenericResponse>
  <GenericResponse>
    <LocalID>2</LocalID>
    <LocalType>3</LocalType>
    <Message>sample string 4</Message>
    <ServerID>1</ServerID>
  </GenericResponse>
</ArrayOfGenericResponse>