Thanks for the hint ,Pavlo,

I manage to change the state via:

PUT 

https://{instance_name}.service-now.com/api/now/table/task/{task_sys_id}

{"state":"2","work_notes":"Updating to in progress"}