// api/records-batch.prg — Format batch insert response // ctx: inserted, first_row, last_row FUNCTION Main() AP_JSONRESPONSE({ ; "inserted" => Val(ctx_get("inserted", "0")), ; "firstRow" => Val(ctx_get("first_row", "0")), ; "lastRow" => Val(ctx_get("last_row", "0")) ; }) RETURN NIL