JIRA Rest API v3 - can I update a resolution via transition that has no screen?

I am trying to update a resolution on Jira task such as to “Closed” or “Done” using
https://tripactions.atlassian.net/rest/api/3/issue/{issue_key}/transitions
But I am getting an error:

{
    "errorMessages": [],
    "errors": {
        "resolution": "Field 'resolution' cannot be set. It is not on the appropriate screen, or unknown."
    }
}

I think the transition id is correct in my request and I have a write permission as well but
it appears all my issue transitions have no screen and that’s causing the error.
If that’s correct, is there a way to perform an issue transition without the screen?

Welcome to the Atlassian Developer Community, @KiHong!

For us to better understand what you’ve tried so far, can you share the request body parameters used?

I tried Jira Cloud’s Transition issue REST API right now using this request body and I was able to successfully transition an issue to Done.

{
 "transition": {
    "id": "41"
  }
}

I got the transition ID by calling the Get transitions API which gave me this result

{
    "expand": "transitions",
    "transitions":
    [
...
        {
            "id": "41",
            "name": "Done",
            "to":
            {
                "self": "https://myinstance.atlassian.net/rest/api/3/status/10002",
                "description": "",
                "iconUrl": "https://myinstance.atlassian.net/",
                "name": "Done",
                "id": "10002",
                "statusCategory":
                {
                    "self": "https://myinstance.atlassian.net/rest/api/3/statuscategory/3",
                    "id": 3,
                    "key": "done",
                    "colorName": "green",
                    "name": "Done"
                }
            },
            "hasScreen": false,
            "isGlobal": true,
            "isInitial": false,
            "isAvailable": true,
            "isConditional": false,
            "isLooped": false
        }
    ]
}

Cheers,
Ian