I'm using Jira REST API to integrate the 'create issue' feature in my web-app.
Checking the specs for 'system' issue fields, I found that for worklog field there's a major difference in terms of what the /rest/api/2/issue API expects, as stated on Jira REST API examples page:
if you are using the JIRA “Legacy” time tracking mode (set by a JIRA Administrator), then only the remaining estimate can be set, so the “originalestimate” field should not be included in the REST request.
I'm aware of the API returning Jira system configuration (/rest/api/2/configuration) which does expose some time tracking-related settings, but not the time tracking mode.