Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Invalid payload error when creating a new Typeform. #16

@Vianpyro

Description

@Vianpyro

Invalid payload error when I try to create a new Typeform.

Expected Behavior

A new form on Typeform should be created.

Current Behavior

No form is created because of an issue I can't fix.

Steps to Reproduce

  1. Copy and paste the code down below in any IDE.
  2. Run the code.
  3. See the error.

Context (Environment)

I've been trying to solve this by myself for hours but I can't find a way to fix this.
This issue is the only problem I have to accomplish my work : I am trying to make a Python application to create a form using the data (questions) in an Excel file.

my_typeform = typeform.Typeform(getpass('Token (text will be hidden): '))

# Create a new form
my_typeform.forms.create({
    'type': 'quiz',
    'title': 'My typeform',
    'fields': [
        {
            'title': 'Nice to meet you, how is your day going?',
            'properties': {
                'randomize': False,
                'allow_multiple_selection': False,
                'allow_other_choice': False,
                'vertical_alignment': True,
                'choices': [
                    {'label': 'Terrific!'},
                    {'label': 'Not so well...'}
                ]
            }
        }
    ]
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions