It looks like the response will give you a source name for each work item, but not its ID.
{
"id": "2c9180857a882ffb017a8b7fd9df2e8b",
"requesterId": null,
"requesterDisplayName": null,
"ownerId": "2c9180867624cbd7017642d8c8c81f67",
"ownerName": "colin.mckibben",
"created": "2021-07-09T13:40Z",
"modified": "2021-07-09T13:40Z",
"description": "Manual Changes requested for User: brad.baller",
"state": "Pending",
"type": "ManualAction",
"remediationItems": [],
"approvalItems": [
{
"id": "90ab0cec569d49b98c59fad36771e32e",
"application": "Employees [source]",
"account": "E006",
"operation": "Create",
"name": "groups",
"value": "DevRel",
"state": null
},
{
"id": "a5579fe4839743b2934bfc56340af6a6",
"application": "Ubuntu [source]",
"account": null,
"operation": "Create",
"name": "groups",
"value": "DevRel",
"state": null
}
],
"name": null,
"completed": null,
"numItems": null,
"form": null
}
You can use the source name in the list sources endpoint to lookup the source. For example, there is a work item above related to the Employees [source]. If you just take the name of the source, which is Employees, and put it in the query param for list sources as follows, you’ll get info about the source.
GET https://tenant.api.identitynow.com/v3/sources?filters=name eq "Employees"