# Posting Option Set Value via api

**URL:** <https://forum.bubble.io/t/posting-option-set-value-via-api/266580>\
**Category:** APIs\
**Created:** [June 7, 2023, 6:08pm UTC](https://forum.bubble.io/t/posting-option-set-value-via-api/266580 "2023-06-07T18:08:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DarioG](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dariog/32/156560_2.png) [@DarioG](https://forum.bubble.io/u/DarioG)\
**Post date:** [June 7, 2023, 6:08pm UTC](https://forum.bubble.io/t/posting-option-set-value-via-api/266580/1 "2023-06-07T18:08:34Z")

</div>

Hello there is there any way I can pass option sets via json when doing a POST from any IDE via api for creating a new thing?

I am trying to pass data for creating a thing from pyCharm with a POST request triggering an api workflow in my app. If I send only text params everything is read properly but if I add option sets it seems it doesn’t eat them well.

I tried to retrieve option set as a list with a param and Returning Data from an Api (structured JSON) and the content as expected is:  
“parameter” : [  
“value1”,  
“value2”,  
“value3”  
]

---

<div class="post-metadata">

**Author:** ![DarioG](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dariog/32/156560_2.png) [@DarioG](https://forum.bubble.io/u/DarioG)\
**Post date:** [June 7, 2023, 7:02pm UTC](https://forum.bubble.io/t/posting-option-set-value-via-api/266580/2 "2023-06-07T19:02:35Z")

</div>

I found a clever solution after a little tweaking with bubble.  
Just set text param but when creating the thing do this:  
Field = (GetAnOption)All OptionSetValues:filtered(constraint: this option set value’sDisplay is param):firstitem

Remember that for example you have to perfectly match param text to the Display
