The officers were responding to a noise complaint made by a neighbour when a group of the party-goers turned on them.
The officers were taken to Cascais Hospital with injuries to their bodies and heads and were kept under observation for several days.
The assailants fled the scene.