During a round and while play is stopped under Rule 5.7a, a player may take these two actions on the putting green, no matter whether the ball is on or off the putting green:

(1) Removal of Sand and Loose Soil. Sand and loose soil on the putting green (but not anywhere else on the course) may be removed without penalty.

(2) Repair of Damage. A player may repair damage on the putting green without penalty by taking reasonable actions to restore the putting green as nearly as possible to its original condition, but only:

But if the player improves the putting green by taking actions that exceed what is reasonable to restore the putting green to its original condition (such as by creating a pathway to the hole or by using an object that is not allowed), the player gets the general penalty for breach of Rule 8.1a.

"Damage on the putting green" means any damage caused by a person or outside influence, such as:

But "damage on the putting green" does not include any damage or conditions that result from:
Click to view full USGA Explanation