Skip to main content

I am trying to test using the WLM APIs, and am encountering some interesting issues, wondering if anyone else has encountered similar. I can authenticate and get a token just fine. I can also run endpoints like v3/wlm/queues/{id}/consumers just fine.

My end goal is to add a new work item to the queue. I can capture information about an existing work item through v3/wlm/queues/{id}/workitems/{workItemID}, but attempting to add a new work item with v3/wlm/queues/{id}/workitems simply returns a 404 resource not found. Same queue, so can’t see it being permissions.

The queue is just for testing, so has a single column: PayerID. So the json returned from querying one of the existing work items looks like this:

{

"json": {
"PayerID": "12345679"
}
}

When trying to add a new work item, not sure why it is not finding the resource. Note, I am adding it in as shown below because the docs show it is expecting an int64, but just for kicks I tried entering 8675309 as a string as well - no joy.

{
"workItems": s
{
"json": {
"PayerID": 8675309
}
}
]
}

 

You need to make POST request and ensure you have Owner or Participant access to be able to add.

If your datatype in workitem template is number, you could still send string(or number) and it will get converted.

{ "workItems": [ { "json": { "PayerID": “8675309” } } ] }


Looking through some sample pages on the old RPA Demo site, I found one from 2023 that added items to the WLM queue.

I was using /v3/wlm/queues/queuenumber/workitems to add items to the queue.

Otherwise, my JSON looks exactly like yours, other than having different parameters. I might try this in Postman and see if you still get the 404 message. It could be a typo or something in your REST call.


Hey ​@JLogan3o13, the enpoint and paylod looks alright. Did you validate the workitem structure in queue settings?


Not sure what the actual root cause was, but I ended up deleting and recreating the queue. New queue number, same columns, but I am now able to add a workitem just fine.


Reply