Hi everyone,
I’m trying to update an item in my dynamic Webflow collection using the API.
API export seems to work when it’s not linked to another block but turns red as soon as I give it data.
Do you see the problem?
Thank you very much,
Ange
Ah, I see you’re getting a JSON error. That usually means that either the formatting in your Body
field is wrong or that Webflow doesn’t like the formatting of the data you’re passing through.
In your case, looks like you’re missing {}
around the whole Body
and you need to remove the comma. Try pasting this into your Body
, instead.
{"fields":
{
"name": "{data.email}"
}
}
Let me know how that goes!
Wow! Thank you, it works!
…but now I have a new problem…
I don’t know if you could tell me why I’m getting this message… my endpoint URL seems to be good though…
Can you copy and paste that error message into a text editor? (Sorry you can’t currently scroll to view it in the step.)Towards the bottom, it should explain the error. It would say something like:
"problems": [
xxx,
yyy,
zzz
]
Can you tell me what it says?
Oh yes, thank you very much!
There were some required fields that I hadn’t filled out! thank you!
Awesome! Glad to hear you were able to resolve it.