How to replace accepted order

I’m using the following Python code to replace an order: api.replace_order(‘9c2933df-4dc7-4c18-8bd3-c2cab4804eee’,1,150,200,None,‘day’). But I get the error: cannot replace order in accepted status. The order is open, accepted but not yet filled so why am I not allowed to replace the order? Is there an alternative if one tries to update stop and limit of an existing order?