Deal Custom Fields Options

Hey. I have an issue with API custom field options in deals. I try to add ENUM custom fields to deals. And can’t add correct options to fields. The system doesn’t parse my options JSON string and add it as one option. What I mean, is see the screenshots:

My request

1146

And What I have:

1147

Could you, please, help me? Where is the mistake? Thank you!

Hey @Vadym_Shcherbyna
Welcome to the community :wave:

Thanks for sharing the code snippet. You seem to pass the options property as a string. Any reason why it’s done that way? :thinking: Ideally, this should be an array of objects (without the stringification)

1 Like

Thank you for your reply. That way - because I wrong understand API docs.

No worries. We will add more examples in the future. Hope you were able to get it working :slight_smile:

1 Like

I changed the string to an array - but it is not working.

But it works if I send only labels without JSON.

It is strange because we have: