Cancelling a partially filled order

Hello,

Lets say I get a partial fill at specified limit price, then the volume comes in and a price goes higher. My order stays intact after partial fill, and I want to cancel it and put up another order with updated price.

Can I cancel or I always get 422 Unprocessable entity?

Thanks.