A hoisting apparatus includes a rotation device with connectors for connecting pressure-medium lines to a rotation device, a boom, from which the pressure-medium lines are arranged to lead to the rotation device, and a pivoted joint for suspending the rotation device on the boom. The pivoted joint includes two consecutive pivots in a longitudinal direction of the rotation device. The rotational axes of the pivots are at right-angles to each other. The pressure-medium lines are routed between lugs of the pivot on a boom side of the pivoted joint, past the connectors of the rotation device in the longitudinal direction of the rotation device, to turn towards the connectors to form a hose loop and then routed to the connectors of the rotation device. The pressure-medium lines are arranged on both sides of the rotation device related to a plane defined in the longitudinal direction of the boom and the longitudinal direction of the rotation device.