> ## Documentation Index
> Fetch the complete documentation index at: https://developers.nuvia.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a dataset via spreadsheet

> Applies the delta by the key column, without deleting what wasn't in the spreadsheet. By default it generates a preview awaiting confirmation (`POST /:id/sync-reports/{reportId}/confirm`); with `?apply=true` it applies directly. Track it at `GET /:id/sync-reports`.



## OpenAPI

````yaml /en/openapi.json post /v1/tables/{id}/sync
openapi: 3.0.0
info:
  title: Nuvia API - Company
  description: API documentation for companies
  version: '1.0'
  contact: {}
servers:
  - url: https://api.nuvia.ai
security: []
tags:
  - name: messages
    x-group: Mensagens
  - name: contacts
    x-group: Contatos
  - name: campaigns
    x-group: Campanhas
  - name: tables
    x-group: Tabelas e Listas
  - name: agents
    x-group: Agentes
  - name: conversations
    x-group: Conversas
  - name: inboxes
    x-group: Caixas de Entrada
  - name: knowledge
    x-group: Base de Conhecimento
  - name: Webhooks
    x-group: Webhooks
  - name: campaign-enrollments
    x-group: Inscrições em Campanha
  - name: custom-fields
    x-group: Campos Customizados
paths:
  /v1/tables/{id}/sync:
    post:
      tags:
        - tables
      summary: Update a dataset via spreadsheet
      description: >-
        Applies the delta by the key column, without deleting what wasn't in the
        spreadsheet. By default it generates a preview awaiting confirmation
        (`POST /:id/sync-reports/{reportId}/confirm`); with `?apply=true` it
        applies directly. Track it at `GET /:id/sync-reports`.
      operationId: TableController_syncFromUpload
      parameters:
        - name: x-company-id
          in: header
          description: >-
            Target company identifier. Required only for global API keys
            (type=global). Ignored for company API keys and human users.
          required: false
          schema:
            type: string
        - name: id
          required: true
          in: path
          schema:
            type: string
        - name: apply
          required: true
          in: query
          schema:
            type: string
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - file
              properties:
                file:
                  type: string
                  format: binary
      responses:
        '202':
          description: ''
      security:
        - JWT-auth: []
components:
  securitySchemes:
    JWT-auth:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Token JWT de autenticação

````