How To Add Bulk Queue Items Using Orchestrator API ?

How to add bulk Queue Items using Orchestrator API and a single API call?

Request URL: /odata/Queues/UiPathODataSvc.BulkAddQueueItems



Method: POST



Header:
Authorization: Bearer {token}
Content-Type: application/json
X-UiPath-TenantName: {tenantname}






Payload/Body:

{
“queueItems”:


[
{“SpecificContent”:{“Name”:“test name1”,“Item”:“test item1”}},


{“SpecificContent”:{“Name”:“test name2”,“Item”:“test item2”}},

{“SpecificContent”:{“Name”:“test name3”,“Item”:“test item3”}}

],

“queueName”:“TestQueue”,

“commitType”:“ProcessAllIndependently”
}






Note: The API has been tested with 2022.4 version of Orchestrator, It should work with lower versions as well.