1. directory
Super Drive Contábil
  • auth
    • signin
      POST
    • forgot-password
      POST
    • change-password
      PATCH
    • generate-access-token
      POST
  • directory
    • create-directorie
      POST
    • list-all-directories
      GET
    • list-all-subdirectories-from-directory
      GET
    • list-files-in-directories
      GET
    • find-directorie-by-id
      GET
    • move-directory
      PATCH
    • delete-directory
      DELETE
    • change-directory
      PATCH
    • delete-directory
      DELETE
    • search-files-and-directories
      GET
    • move-directories-batch
      PATCH
    • delete-directories-batch
      DELETE
    • list-directory-name-suggestions
      GET
  • customers
    • create-customer
      POST
    • find-customer-by-id
      GET
    • list-all-customers
      GET
    • change-customer
      PUT
    • delete-customer
      PATCH
    • cancel-delete-customer
      PATCH
    • permanent-delete-customer
      DELETE
    • import-customers
      POST
  • department
    • create-department
      POST
    • find-department-by-id
      GET
    • list-all-departments
      GET
    • list-users-in-deparment
      GET
    • change-department
      PUT
    • delete-department
      DELETE
  • contacts
    • create-contact
    • list-all-contacts
    • list-files-by-contact
    • list-contact-files-by-external-id
    • send-file-to-trash
    • restore-file-to-trash
    • delete-file-from-contact
    • send-many-files-to-trash
    • restore-many-files-to-trash
    • delete-many-files-from-contact
  • cloud
    • upload-file-from-contact
    • upload-file-from-cloud
  • users
    • delete-user
    • list-all-users
    • find-user-by-id
    • change-user
    • create-user
    • reset-user-password
  • integration
    • list-all-integration
  • automations
    • create-sharing-automation
    • create-automation
    • create-automation-ia
    • change-automation
    • list-all-automations
  • file
    • share-file
    • find-file-by-id
    • change-file
    • list-all-files
    • delete-file
    • move-file
    • find-file-by-id
  • zappy
    • list-sections
    • list-connections
  • channel
    • disconnect-channel
    • connection-channel
    • create-connection-channel
    • list-channels
  • directory-structure-model
    • create-directory-structure-model
    • change-directory-structure-model
    • delete-directory-structure-model
    • list-all-directory-structure-model
    • find-directory-structure-model -by-id
  • api-keys
    • create-api-key
    • change-api-key
    • list-all-api-keys
  • Schemas
    • Signin
  1. directory

delete-directories-batch

DELETE
https://api.superdrivecontabil.com.br/v1/directories/batch
Exclui várias pastas em lote (máx. 50 por requisição, sem ids duplicados). Responde 202 imediatamente e o processamento é assíncrono (fila directories, job delete-directories-batch).
Regras por pasta (as mesmas de DELETE /v1/directories/{id}): não pode ser a pasta desktop, não pode conter arquivos ou subpastas, não pode ser a raiz de um cliente e não pode estar vinculada a uma automação ativa. Se pai e filho forem enviados juntos, os filhos são excluídos primeiro.
Eventos Socket.IO:
directoryStatusChanged (org): { directoryIds, status } — 2 (PENDING_DELETION) ao iniciar; volta a 1 (ACTIVE) em caso de falha da pasta.
directoryRemoved (org): { directoryId } — uma vez por pasta excluída.
directoryDeleteResult (usuário): { batchId, directory: { status: "ok"|"error", directoryId, message? } } — um por pasta.
directoryDeleteBatchCompleted (usuário): { batchId, totalDirectories, successCount, errorCount }; em falha total do job vem { batchId, failed: true, message }.

Request

Header Params

Body Params application/json

Example
{
  "directoryIds": [
    "01a1b188-bb53-7178-8bb4-9dd992593c43",
    "01a1b173-f26e-73c9-a19b-a192be4e7530",
    "01a1b188-a0cf-76fd-89aa-48ce78892022"
  ]
}

Responses

🟢202Accepted
application/json
Bodyapplication/json

Example
{
    "message": "string",
    "body": {
        "batchId": "string"
    }
}
🟠422Validation error
Modified at 2026-11-19 22:17:07
Previous
move-directories-batch
Next
list-directory-name-suggestions