Bug #4300
Can't update 2 specific fields when updating accounts through API
0%
Description
Calling /api/idnode/save?node=json using POST causes all fields of the account to update except the field "enabled" and "comments". These are always unset despite if the checkbox is checked or the input is filled with info.
All the other fields seem to work correctly.
History
Updated by Hyperion Moderkart over 7 years ago
Creating new accounts allowed me to set these fields correctly
Updated by Hyperion Moderkart over 7 years ago
I mean, for new accounts created, the field can be set but still, when someone will try to edit them it wont work. The fields enabled and comment are always unset. It does work if I copy/paste the request manually into the browser though.
Updated by Jaroslav Kysela over 7 years ago
- Status changed from New to Invalid
URL: http://localhost:9981/api/idnode/save
POST DATA: node=[{"enabled":false,"comment":"New entry 24","uuid":"d3ca492cec1efea5d2360e51ba75b4ec"}
Works here.
Updated by Hyperion Moderkart over 7 years ago
Does it work for you if you call it through a cURL request? What can the problem be of only these 2 fields arent geting registered?
Updated by Hyperion Moderkart over 7 years ago
I narrowed down the problem into being laravels issue and not TVheadEnds. I will take it to them now. Thanks
Updated by C K over 7 years ago
Hyperion Moderkart wrote:
I narrowed down the problem into being laravels issue and not TVheadEnds. I will take it to them now. Thanks
If youre familiar with Python take a look at for API examples: https://github.com/tvheadend/python-htspclient/blob/master/scripts/disable_iptv_vod_muxes.py#L67