If you have priority matrix enabled on your account, then the value passed in the API will be ignored and the priority matrix would set the priority for the ticket. If in case  you do not want this, you can navigate to Admin > Priority Matrix and disable it.