# Failing to add 'PublishBatchRequestEntries' to AWS SNS

**URL:** <https://community.postman.com/t/failing-to-add-publishbatchrequestentries-to-aws-sns/54651>\
**Category:** Help Hub\
**Tags:** aws, postman, post, typeerror\
**Created:** [November 15, 2023, 6:54pm UTC](https://community.postman.com/t/failing-to-add-publishbatchrequestentries-to-aws-sns/54651 "2023-11-15T18:54:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gzehavi](https://avatars.discourse-cdn.com/v4/letter/g/7cd45c/32.png) [@gzehavi](https://community.postman.com/u/gzehavi)\
**Post date:** [November 15, 2023, 6:54pm UTC](https://community.postman.com/t/failing-to-add-publishbatchrequestentries-to-aws-sns/54651/1 "2023-11-15T18:54:46Z")

</div>

I am trying to use the ‘PublishBatch’ action with REST API.

when trying to add the “publishBatchRequestEntries”, getting the error:

‘Top level element may not be treated as a list’

Probably not writing the Query Param Key correctly.

What is the correct way to do this?

A screen shot of my params:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/4/0/407ebbb662ea0db39f39a2b7bd65c75c0867d83f.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 16, 2023, 11:22am UTC](https://community.postman.com/t/failing-to-add-publishbatchrequestentries-to-aws-sns/54651/2 "2023-11-16T11:22:57Z")

</div>

Hey @gzehavi 👋

Welcome to the Postman Community! :postman:

Is there some documentation to that API that you’re following here?

Unless someone has used that API, in the same way as you’re doing here, it’s going to be difficult to help here.

We could go searching for that documentation but this should have ideally been included in your question, to provide the context to others.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 16, 2023, 11:23am UTC](https://community.postman.com/t/failing-to-add-publishbatchrequestentries-to-aws-sns/54651/3 "2023-12-16T11:23:19Z")

</div>

Closed on December 16, 2023, 11:23am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
