JSON code for PUT API in Pabbly

Status: Closed · Asked by Durkis on · 0 views

Durkis — Question ·

Hi,

I am trying to do a PUT API request to Plutio. Its for a custom field in the Proposals section. I have looked on the API page and looked at examples, but I must have the syntax wrong. can you help?

The automation is Here, but I have a screenshot below which may make my mistake clear.

thank you again for your help.

Stu

Durkis — Reply ·
Looks like you have not added { } for JSON.

You can validate JSON syntax on https://jsonlint.com/ and then copy-paste from there to pabbly and add the mappings.


Thanks man, that's a great tip. I will try it out.
Durkis — Reply ·

OK. that's a great tool. I have validated the JSON code and I get this error:


So now I am trying to represent the custom fields as an array but after playing around with square brackets and commas and getting errors or bad code, I am not sure how to represent this. Can anyone help?

Pabblymember11 — Reply ·

Hey @Durkis

Please allow us some time, we are currently looking into it.

Hermes — Reply ·

Please use this:
"customFields" : [
{
"_id" : "PLbDXZKuH22Scn9Ya",
"value" : "{{__data.entity}}"
}

Best regards,
[EMAIL='[email hidden]']Hermes[/EMAIL]
Connect with me on LinkedIn
Durkis — Reply ·
Please use this:
"customFields" : [
{
"_id" : "PLbDXZKuH22Scn9Ya",
"value" : "{{__data.entity}}"
}

Hi, Hermes, thanks for that. I must be using this wrongly, because JSONlint is giving me parse errors, both using the code as is, and trying to insert it where I had the "Customfields" name before hand. Can you help?

Attachments

Screenshot (20).png
Screenshot (21).png
Durkis — Reply ·

**bump** can anyone help with this JSON code?

Back to all forum threads · Log in to reply