Thanks all for replying.
I think I am seeing the problem thanks to the post from @utkirjonkamiljanov. When looking at the UI, it plainly states that what I am needing to cancel are tasks, when the API calls these ‘Work Items’. This is a bit confusing in my opinion. Thanks, as this is taking me a step in the right direction as I was not finding the tasks by the ID.
@trettkowski I will need to try something similar to what you have with the state as seen below:
[
{
"id": "###",
"requesterId": "###",
"requesterDisplayName": "SYSTEM",
"ownerId": "###",
"ownerName": "slpt.services",
"created": "2024-12-10T17:22Z",
"modified": "2024-12-10T17:22Z",
"description": "Manual Changes requested for User: FN, LN",
"state": "Pending",
"type": "ManualAction",
"remediationItems": [],
"approvalItems": [
{
"id": "###",
"application": "ISC Admins",
"account": null,
"operation": "Create",
"name": "groups",
"value": "value",
"state": null
}
],
"name": null,
"completed": null,
"numItems": null,
"form": null
}
]
@amulpuru, This is actually a link to another post that I had on the same subject, but forgot I had. I was looking at the workflow and it looks like it is revoking access requests, which is not what is needing to be done. Come to find out these are Work Items that the UI lists as task (you would think you would use the Task Management API for this).
If I have time to resolve this this week I will keep everyone updated.