API ReferenceSteam
POST /integrations/steam/import
Iniciar importação de jogos selecionados
POST
/integrations/steam/importAuth: accessTokenRecebe appIds + collection destino (existente ou nova). Cria batch_id, enfileira jobs steam.import-game (1 por appId), e enrich-game subsequente. Retorna { batchId } pra polling.
Request
| Campo | Tipo | Requerido | Descrição |
|---|---|---|---|
| collectionId | string (uuid) | não | |
| newCollectionName | string | não | |
| appIds | Array of integer | sim | |
| gamesSnapshot | Array of object | não |
Response
200
Sem corpo na resposta.
Erros
Sem respostas de erro documentadas.
Exemplos
curl -X POST 'http://localhost:3003/integrations/steam/import' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer SEU_ACCESS_TOKEN' \
-d '{}'await fetch('http://localhost:3003/integrations/steam/import', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: 'Bearer ' + accessToken,
},
body: JSON.stringify({}),
})