Get an option via display name

Hi all,

I am calling an API via action and want to set an option value on a thing. However, since the API returns text, in need to lookup the display name of the option and set the value. Is that possible?

The problem that I’m trying to solve is that I have an API from a plugin returning a value as text. I want to save that value as an option set. Since it’s a plugin, I can’t map the result to my option set - I least I don’t think you can.