Cancel pending hooks in bulk. Provide specific hook IDs or use time-range filters.
| Language | By IDs | By Filter |
|---|---|---|
| TypeScript | posthook.hooks.bulk.cancel({ hookIDs }) | posthook.hooks.bulk.cancel({ startTime, endTime, limit }) |
| Python | client.hooks.bulk.cancel(hook_ids) | client.hooks.bulk.cancel_by_filter(start_time, end_time, limit) |
| Go | client.Hooks.Bulk().Cancel(ctx, &BulkActionByIDs{}) | client.Hooks.Bulk().CancelByFilter(ctx, &BulkActionByFilter{}) |
{ affected: number } — the count of hooks that were cancelled.Bulk action request. Provide either hookIDs for specific hooks, or startTime/endTime/limit for a filter-based selection.
Array of hook IDs to act on (max 1000). Mutually exclusive with filter parameters.
1000Start of time range filter (RFC 3339). Use with endTime and limit.
End of time range filter (RFC 3339). Use with startTime and limit.
Maximum number of hooks to act on (1-1000). Required with time range filters.
1 <= x <= 1000Optional. Filter by endpoint key.
Optional. Filter by sequence ID.
Bulk cancel initiated