REST: implement "purgeticket" request and associated documentation