POST TachoFile/Post

Post (driver or vehicle) tachofiles into customer, finding the correct employee/vehicle or creating one if needed To post tachofiles, the content of the post request needs to encoded as "multipart/form-data”. (In that way it is also possible to upload multiple tachofiles with one post.) For driver files an extra "Downloaded-Time" header can be used, on the individual file headers or on the whole request, to supply the date the driver tacho file was downloaded from the card. This header should be in the RFC 2616 date/time format

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

a dto with information about the posted file (in same order as the uploaded files)

Collection of PostedTachoFileDto
NameDescriptionTypeAdditional information
IsValid

Was the tacho file a valid tachofile

boolean

None.

IsDuplicate

Did the tachofile allready exist (if true, the file is not imported and the id of the duplicate tacho file is returned)

boolean

None.

Id

Tacho file id

integer

None.

GeneratedFileName

Filename generated for file

string

None.

TachoFileType

The file type for the posted tacho file (D=Driver V=Vehicle)

character

None.

EmployeeCreated

was a new employee created

boolean

None.

EmployeeId

Id for the employee

integer

None.

EmployeeFullName

Fullname for the employee

string

None.

TagCreated

was a new Tag created

boolean

None.

TagId

Id for the tag

integer

None.

TagBadgeId

The badge id for the tag

string

None.

ActivityPeriodStart

If the file contained activities, returns the start date of the activities

date

None.

ActivityPeriodEnd

If the file contained activities, returns the end date of the activities

date

None.

InvalidReason

The reason for why IsValid = false

string

None.

AdministrationCreated

was an administration created

boolean

None.

AdministrationId

Id for the administration

integer

None.

AdministrationLicensePlate

Licenseplate of the administration

string

None.

AdministrationDescription

Description for the administration

string

None.