Saltar al contenido principal
POST
/
streaks
/
freezes
JavaScript
import { TrophyApiClient } from '@trophyso/node';

const trophy = new TrophyApiClient({
  apiKey: 'YOUR_API_KEY'
});

const response = await trophy.admin.streaks.freezes.create({
  freezes: [
    { userId: 'user-123' },
    { userId: 'user-456' },
  ]
});
{
  "issues": []
}
Límites de tasa

Autorizaciones

X-API-KEY
string
header
requerido

Cuerpo

application/json

Array of freezes to create

Request body for creating streak freezes.

freezes
object[]
requerido

Array of freezes to create. Maximum 1,000 freezes per request.

Required array length: 1 - 1000 elements

Respuesta

Successful operation

Response containing any issues encountered while creating streak freezes.

issues
BulkInsertIssue · object[]
requerido

Array of issues encountered during freeze creation.