Skip to main content
POST

Served by POST /v2/traffic/prune, and returns only the number of pruned events. Permissioned only to Ledger API admin users. Deprecated since Canton 3.7, disabled by default in Canton 3.8 and removed in Canton 3.9 (disable it earlier with canton.participants.<participant>.features.deprecated.enable-deprecated-endpoints-37 = false). Use POST /v2/traffic/prune instead.

Authorizations

httpAuth

string
required
HTTP bearer authentication. Send the token as Authorization: Bearer <token>. Ledger API standard JWT token

apiKeyAuth

string
required
API key authentication in the header. Ledger API standard JWT token (websocket)

Body

application/json
string
required
The timestamp before which events should be pruned. Events with a timestamp less than or equal to this value will be pruned. Required

Responses

200

application/json
integer (int32)
required
The number of events that were pruned. Required

400

Invalid value, Invalid value for: body
text/plain
string
required

default

application/json
string
required
string
required
string
string
Map_String
required
Tuple2_String_String[]
integer (int32)
required
integer (int32)
string
boolean

History

Deprecated3.7
Updated3.7

The POST /v2/traffic/events/prune operation changed in this snapshot.

Added3.6