Skip to main content
DELETE
Bulk-delete Critical Tracking Events

Authorizations

X-API-Key
string
header
required

Path Parameters

organization_id
string<shortuuid>
required

Identifier of the organization.

Required string length: 22
Pattern: ^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$

Query Parameters

before
string<date-time>

Match events whose event date is strictly before this ISO 8601 datetime.

lot_id
string<shortuuid>

Match events recorded against this product lot.

Required string length: 22
Pattern: ^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$
event_type
enum<string>

Match events of this FSMA 204 type.

Available options:
GROWING,
HARVEST,
COOLING,
INITIAL_PACK,
LAND_RECEIVE,
RECEIVE,
TRANSFORM,
SHIP

Response

OK

200 OK body for a bulk delete — counts deleted vs partitioned-skipped.

deleted
integer
required

Count of CriticalTrackingEvents actually removed. Rows still inside their FSMA 204 retention window are partitioned into skipped and not counted here.

Required range: x >= 0
skipped
BulkDeleteSkippedItem · object[]

Records held back by the retention trigger. Each entry carries the record's id, a stable reason code, and the retention_until datetime at which it becomes deletable.