Update order status using api

Thanks for the reply but could you please share any example. It’s very help full to me.