I am trying to use the API end point rest/api/2/issue/<key>/transitions to transition a subtask to canceled. I am posting the request message as
{"update": {"comment": [{"add": {"body": "Resolved via automated process."}}]},"transition": {"id": "791"},"fields": {"resolution": {"name": "Canceled"}}}
I was able to pull the transition id from my workflow in Issues -> Workflow
when I execute the following endpoint I get the following error: 500
{"errorMessages":["Internal server error"],"errors":{}}
Any help would be great