Need to update Typeform fields through api | Community
Skip to main content
Answered

Need to update Typeform fields through api

  • September 14, 2023
  • 3 replies
  • 169 views

Hello Team, I need to update form fields using api. PATCH is not working with fields value, so I need to use PUT method, My form is too long first i get the json response and I have to pass whole json again bcz if I miss anything then form logic, hidden values, setting , all these things will miss.

So I have to pass whole json is it correct. Also is there any way, I can update only fields « multiple choice options . My json data is very long .

Best answer by mathio-tf

Hello @sim23 ,

you will need to use the whole JSON as the payload. Otherwise you will lose part of the form / logic you do not send, as you correctly mentioned in your first message.

What is you concern with JSON body being too long? It should be completely fine to send large payloads inside request body.

View original

3 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14857 replies
  • September 14, 2023

Hi @sim23 I believe you have to update the entire form, but @mathio or @picsoung might be able to confirm!


  • Author
  • Explorer
  • 1 reply
  • September 14, 2023

So basically I wants to update my question multiple choice options dynamically. So they are under fields in json. So is there any way where i just need to send only fields data not whole data bcz if I miss anything while updating then my earlier setting will delete.

 


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • 888 replies
  • Answer
  • September 15, 2023

Hello @sim23 ,

you will need to use the whole JSON as the payload. Otherwise you will lose part of the form / logic you do not send, as you correctly mentioned in your first message.

What is you concern with JSON body being too long? It should be completely fine to send large payloads inside request body.


Reply