'Podio PHP - PodioItem: Add option to category field

I am trying to add a new option to PodioCategoryItemField using the podio php api

$field = new \PodioCategoryItemField('test');
$field->add_value( array(
         'value'=>array( 'status'=>'active','text' =>'some label','color'=>'#FFF' )
));

I can't get it to work. I have to set an id in the array, but if I do, I get an error that the option is not valid ( offcourse, I try to create a new one )

Any ideas on this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source