Saltar al contenido principal
DELETE
/
points
/
boosts
JavaScript
import { TrophyApiClient } from '@trophyso/node';

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

const response = await trophy.admin.points.boosts.batchArchive({
  ids: ['boost-uuid-1', 'boost-uuid-2', 'boost-uuid-3']
});

console.log(`Archived ${response.archivedCount} boosts`);
{
  "archivedCount": 3
}
Límites de tasa

Autorizaciones

X-API-KEY
string
header
requerido

Parámetros de consulta

ids
string[]
requerido

A list of up to 100 boost IDs.

Required array length: 1 - 100 elements

Respuesta

Successful operation

Response containing the count of archived points boosts.

archivedCount
integer
requerido

The number of boosts that were archived.

Ejemplo:

3