Skip to main content
Question

Create Question Groups using API in Python

  • 15 July 2024
  • 3 replies
  • 26 views

Hello everyone,

I am currently trying to create a form via the Typeform API that contains multiple Question Groups. Unfortunately, I get an error message saying that the payload is invalid and no additional properties are allowed. Can someone help me understand why I cannot create Question Groups via the API? I've already tried to customize the structure but I'm stuck.

Thanks in advance for your help!

Best regards

3 replies

Userlevel 7
Badge +5

Hi @henrikbär Do you mind sending over the payload that was sent? Thanks in advance!

Hi @henrikbär Do you mind sending over the payload that was sent? Thanks in advance!

Hi @Liz ,

 

thanks for your answer, I tried creating the question groups like this:

 

{
    "title": "Mein Testformular",
    "fields": [
        {
            "type": "group",
            "title": "Group A",
            "ref": "group_a",
            "properties": {},
            "fields": [
                {
                    "type": "short_text",
                    "title": "Frage 1 (Group A)",
                    "ref": "q1_group_a",
                    "properties": {}
                },
                {
                    "type": "short_text",
                    "title": "Frage 2 (Group A)",
                    "ref": "q2_group_a",
                    "properties": {}
                }
            ]
        },
        {
            "type": "group",
            "title": "Group B",
            "ref": "group_b",
            "properties": {},
            "fields": [
                {
                    "type": "short_text",
                    "title": "Frage 1 (Group B)",
                    "ref": "q1_group_b",
                    "properties": {}
                },
                {
                    "type": "short_text",
                    "title": "Frage 2 (Group B)",
                    "ref": "q2_group_b",
                    "properties": {}
                }
            ]
        }
    ]
}
 

 

Best regards

 

 

Userlevel 7
Badge +5

Thanks!! @mathio or @picsoung do you happen to know anything about this and/or if this is possible/correct formatting? 😅

Reply