Could not save profile value with REST API
Hi,
I want to save a profile variable with a new value using the rest api. I checked the normal form names and values and recreated a custom settings area.
I could read the most values with the rest api call: /users/self/profiles?restapi.response_style=json
Then i checked the form select option values and build my own page with form elements and the exact same option values:
For example:
<select class="lia-form-boardDistributionFrequency-input" name="boardDistributionFrequency" id="boardDistributionFrequency" data-key="board.sub_email_delivery_freq">
<option title="Nie" value="never">Nie</option>
<option title="Sofort" value="immediate">Sofort</option>
<option title="In einer Tagesübersicht" value="daily" selected="">In einer Tagesübersicht</option>
<option title="In einer Wochenübersicht" value="weekly">In einer Wochenübersicht</option>
</select>
So far so good. But when I choose "Nie" which sends "never" I could not save the value. Every other values is working fine. So when I choose "Sofort" which means "immediate" everything is ok. Only "never" produces an error 503. I am doing the following call which produces the error: /users/self/profiles/name/board.sub_email_delivery_freq/set?value=never
This request works fine: /users/self/profiles/name/board.sub_email_delivery_freq/set?value=immediate
Could someone explain what I am doing wrong?
Regards,
Michael