Question

POST raw json with array

  • 24 September 2020
  • 2 replies
  • 1154 views

I currently have a URI - http://example.com/restful_api/photo?access-token=xxx

I am using the Zapier Webhook with a Custom Request > POST.

 

Parameters: 

image[]: array

val[description]:string

 

Testing it out with PostMan Form Data it works perfectly. However, it doesn’t work with Zapier’s POST.

 

I have tried the following raw json code as well but it’s not working:

Content-Type: application/json

{

"image": {["https://landcarer-1.s3.ap-southeast-2.amazonaws.com/file/pic/photo/2020/09/b62bde83d011b33f49eca46b1c44ba03_1024.jpg"]},

"val": {"description":"here's the image"}

}

 

 

Any help would be greatly appreciated.

 


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Userlevel 7
Badge +14

What error are you getting when testing the POST?

{

"status": "failed",

"data": [],

"message": "",

"error": {

"message": "Cannot add new photo."

}

}