Change Priority Web API

I want to provide my customers to change job priority on our web page. Are there any solution to change it using api request.

I can change using deadlinecommand but I can not change it using web api requests. Can you share any sample of code how to do it?

It works only deadlinecommand.exe Thank you.