If you have priority matrix enabled on your account, then the API will be overridden and the priority matrix would set the priority for the ticket.