Configurar el reporte diario

Usalo para activar o ajustar el reporte diario: el horario de envío y si cubre todas las campañas o solo algunas.

PUT
/alerts/daily-report

Upsert the daily report configuration for the authenticated owner. Ensures exactly one row per owner (unique(owner_id))

Escritura · requiere el permiso accounts:write.

When all_campaigns is false, the submitted campaign_ids are pruned to only those that still resolve to a visible campaign (owner + agents scope) in the groups database, dropping orphans silently. The purge is best-effort: if the groups connection is unavailable, the submitted ids are persisted unpruned rather than being wiped out.

Autorización

http
headerAuthorizationBearer <clave>

Cuerpo del pedido

application/json
  1. body
enabled*boolean
send_time?string|null
all_campaigns*boolean
campaign_ids?array<integer>|null

Cuerpo de la respuesta

AlertDailyReportResource

application/json
  1. response
enabled*boolean
send_time*string|null
all_campaigns*boolean
campaign_ids*string|array<string>
curl -X PUT "https://example.com/alerts/daily-report" \  -H "Content-Type: application/json" \  -d '{    "enabled": true,    "all_campaigns": true  }'
{  "enabled": true,  "send_time": "string",  "all_campaigns": true,  "campaign_ids": "string"}