brevo-node icon indicating copy to clipboard operation
brevo-node copied to clipboard

Support for updating multiple choice attributes

Open wug-ge opened this issue 1 year ago • 2 comments

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 avatar Oct 18 '24 06:10 wug-ge

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 avatar Oct 18 '24 06:10 wug-ge

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

wug-ge avatar Nov 14 '24 11:11 wug-ge