---
title: "Criar trilhas em lote (assíncrono)"
method: POST
path: "/v1/public/pathways:batchCreate"
tags: ["Pathways"]
---

# Criar trilhas em lote (assíncrono)

`POST /v1/public/pathways:batchCreate`

## Request body

- PathwaysBatchCreateRequestDto
  - `createdByUser` string, required — User UID for the creator of the pathways
  - `pathways` PathwaysBatchCreateItemRequestDto[], required
    - `name` string, required — Name of the pathway
    - `tags` string[] — Tags of the pathway
    - `isRequired` boolean — Whether the pathway is required
    - `workloadMinutes` number — Workload of the pathway in minutes
    - `showRanking` boolean — Whether the pathway should show ranking
    - `hasReenrollment` boolean — Whether the pathway should have reenrollment config
    - `showCertificate` boolean — Whether the pathway should show certificate
    - `notificationOnActivate` PathwayNotificationParamsRequestDto
      - `subject` string, required — Subject of the notification
      - `content` string, required — Content of the notification
    - `notificationOnFinish` PathwayNotificationParamsRequestDto
      - `subject` string, required — Subject of the notification
      - `content` string, required — Content of the notification

## Response `202`

Mensagens aceitas para processamento assíncrono

- PathwaysBatchCreateAcceptedResponseDto
  - `result` PathwaysBatchCreateResultDto, required
    - `acceptedCount` number, required — Number of messages accepted and published (one per pathway)

## Other responses

- `400` — Requisição inválida. Verifique os dados enviados.
- `401` — Você não possui uma autenticação válida.
- `403` — Você não possui permissão para criar trilhas em lote.
- `404` — Empresa não encontrada.

---

[API](https://skmtc.net/gupy/apis/gupy-public-api.md) · [All operations](https://skmtc.net/gupy/apis/gupy-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gupy/gupy-public-api/versions/3f26defa2a42/schema)
