---
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

- Base URL: `https://api-pathways.niduu.com`
- URL: `https://api-pathways.niduu.com/v1/public/pathways:batchCreate`
- Auth: HTTP bearer

## 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.dev/gupy/apis/trilhas-api.md) - [All operations](https://skmtc.dev/gupy/apis/trilhas-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gupy/apis/trilhas-api/revisions/fcdf1f064334?raw)
