Battery Infos by the httpAPI

Hi Forum.

This is my first question about the up2strem mini. When I study the >>httpapi.asp?command=Command: getStatusEx<< I get also:

battery 0: battery is not charging
1: battery is charging
battery_percent Battery charge level
Value ranges from 0 - 100
Can someone explain how to connect a battery to the board?

Looking forward to reading here an answer!
Herby