Update Records with API without changing Modified User or Modified Time

Is there a way to update records using the API without changing the Modified user or time?

I know this can be done when updating a record using a logic hook, but I need to do it using the API.

I tried storing the original Modified Time and User as variables and then including them in my data map when I update the record. Didn't work.