Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for updating multiple choice attributes #39

Open
wug-ge opened this issue Oct 18, 2024 · 2 comments
Open

Support for updating multiple choice attributes #39

wug-ge opened this issue Oct 18, 2024 · 2 comments

Comments

@wug-ge
Copy link

wug-ge commented Oct 18, 2024

Hi!

In the current version, updating multiple choice attributes doesn't work. (https://developers.brevo.com/reference/updateattribute)
I found 2 issues which would have to be changed:

  • Support for "normal" categoryType in contacts API "updateAttribute" function. (Only a type issue)
  • Support for "multiCategoryOptions" property in UpdateAttribute model, include it in JSON at PUT request.

I'm happy to create a pull request if needed as well :)

Thanks!

@wug-ge
Copy link
Author

wug-ge commented Oct 18, 2024

Same issue with listing Attributes, this is the JSON returned from the API:

{ "name": "FORM", "category": "normal", "type": "multiple-choice", "multiCategoryOptions": [ "option1", "option2", "option3", "option4" ] }

and this is the content of the object:
GetAttributesAttributesInner { name: 'FORM', category: 'normal', type: 'multiple-choice', enumeration: undefined, calculatedValue: undefined }

@wug-ge
Copy link
Author

wug-ge commented Nov 14, 2024

Any updates on this? Given sib-api-v3-sdk is deprecated...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant