---
title: "Upload file Excel di timesheet (Shifts)"
method: POST
path: "/imports/timesheet"
---

# Upload file Excel di timesheet (Shifts)

`POST /imports/timesheet`

Riceve un file Excel esportato da Microsoft Teams Shifts. Crea un ImportBatch in stato `queued` e avvia l'elaborazione asincrona. Il servizio **non** modifica mai i timestamp originali: le pause mal registrate sono derivate come entità *Pause* e associate ai turni con regola di overlap massimo.

## Response `202`

Batch accettato per l'elaborazione.

- ImportBatch — Tracciamento di un upload e del relativo processamento.
  - `id` string, uuid, required — UUID del batch
  - `filename` string, nullable — Nome file
  - `uploadedBy` string, nullable — Identificativo dell'operatore/servizio
  - `rowsTotal` integer, required — Numero totale righe lette
  - `rowsOk` integer, required — Numero righe importate
  - `rowsError` integer, required — Numero righe con errori/warning
  - `status` 'queued' | 'processing' | 'completed' | 'completed_with_errors' | 'failed', required — Stato del batch
  - `startedAt` string, date-time, nullable — Inizio elaborazione
  - `finishedAt` string, date-time, nullable — Fine elaborazione

## Other responses

- `400` — Richiesta non valida
- `415` — Tipo file non supportato.
- `500` — Errore interno

## Changes

- **2026-07-13** `d2d865af0be0` — 1 info
  - endpoint added
- **2025-08-28** `a42942658ed2` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/flowpay/apis/backoffice-timesheet-importer-api/changes/imports/timesheet/post.md)

---

[API](https://skmtc.dev/flowpay/apis/backoffice-timesheet-importer-api.md) · [All operations](https://skmtc.dev/flowpay/apis/backoffice-timesheet-importer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/flowpay/backoffice-timesheet-importer-api/revisions/d2d865af0be0/schema)
