Python - API - Error when trying to retrieve the list of attributes

When using the brevo-python library, I get an error when I try to retrieve the list of existing attributes.

ValueError: Invalid value for type (multiple-choice), must be one of ['text', 'date', 'float', 'id', 'boolean']

If I delete the multiple choices attributes then the API call is working.

Could someone tell me how to get the list of attributes?

Thanks,
Thomas.

Hi @ThomasF , thanks for your post.

If I get it well, you’re trying to list the contact attributes, right? Have you tried with this endpoint: List all attributes ?

Hi, thanks for reverting back.

Actually I’ve tried that through the brevo_python package and when I have a multichoice attribute the function crashes with the error above.

I’ve used directly the API using « requests » without the package and this works fine.

So I’m good but you still have an issue within the brevo_python package.

Best,

1 Like