dict is not iterable - Pebbly API

Status: Closed · Asked by NeurodiverCity on · 0 views

NeurodiverCity — Question ·

Hi All,
I seem to be getting the error: dict is not iterable when making API Calls, Please see the attached.

API from my system shows an example request as follows:

[
{
"key": "process_id",
"value": "61c3762d671cf595bc2b7cb4",
"label": "Process Id for which the action needs to be initiated",
"mandatory": true
},
{
"key": "type",
"value": "start_instance",
"label": "Action Type",
"mandatory": true
},
{
"key": "61af5bb0671cf595bc2b33ef_61c37a1b671cf595bc2b7cd3",
"value": "",
"label": "Name",
"mandatory": true
},
{
"key": "61af5bb0671cf595bc2b33ef_61c37a29671cf595bc2b7cd4",
"value": "",
"label": "Job Title",
"mandatory": false
},
{
"key": "61af5bb0671cf595bc2b33ef_61c37a3c671cf595bc2b7cd5",
"value": "",
"label": "Company",
"mandatory": false
},
{
"key": "61af5bb0671cf595bc2b33ef_61c37a50671cf595bc2b7cd6",
"value": "",
"label": "Phone Number",
"mandatory": false
},
{
"key": "61af5bb0671cf595bc2b33ef_61c37a5f671cf595bc2b7cd8",
"value": "",
"label": "E-Mail Address",
"mandatory": true
}
]

Attachments

Screenshot 2021-12-22 at 20.07.19.png
Pabblymember11 — Reply ·

Hey @NeurodiverCity

Could you please share the API documentation which you are trying to implement on API by Pabbly?

Thanks

NeurodiverCity — Reply ·

Hi There,
Please see attached

Attachments

Screenshot 2021-12-23 at 08.04.19.png
Pabblymember11 — Reply ·

Hey @NeurodiverCity

Could you please tell us what will be the value on the place of "start Instance" in your provided JSON?

NeurodiverCity — Reply ·

Start_instance is the value that needs to be passed, it's what triggers the automation in the system we use

Pabblymember11 — Reply ·

Hey @NeurodiverCity

We tried your API call at your end accordingly and it is still showing "Invalid Type". So, we would recommend you contact their support team on this particular API request.

Regards

NeurodiverCity — Reply ·

I had this problem, if you remove the [ ] it will present the error and accept the type

Pabblymember11 — Reply ·

Hey @NeurodiverCity

As per the API documentation [] is needed and we cannot remove that because that is not the acceptable format of the JSON body.

Kindly contact the respected API support team for this.

Regards

Back to all forum threads · Log in to reply