View Issue Details

IDProjectCategoryView StatusLast Update
0020235phpList 3 pluginsGeneralpublic07-08-20 17:43
Reportersafin Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Summary0020235: Rest Api: subscriberUpdateAttributes is not working as per documentation
Description
Api url :/subscriberUpdateAttributes

{"userid":98,
"attributes":[{"1": "John Samuel"},{"6": "John "},{"7":"Samuel"},{"8":"#32 Plot 345, CA USA"}]
}
Tagsplugin

Activities

safin

14-07-20 12:31

reporter   ~0063221

subscriberUpdateAttributes - the api subscriberUpdateAttributes is not updating the values of subscriber attributes.
Api input:

{"userid":98,
"attributes":[{"1": "John Samuel"},{"6": "John "},{"7":"Samuel"},{"8":"#32 Plot 345, CA USA"}]
}

safin

14-07-20 12:39

reporter   ~0063222

Workaround:
Edited subscriber.php plugin api file and seems the api working now and updating the attributes as expected.
Added it aa new api function - subscriberUpdateAttributesMultiple.

michiel

15-07-20 21:04

administrator   ~0063227

Thanks for finding that. Please take a little time to submit a pull request on Github. https://github.com/phpList/phplist-plugin-restapi/pulls

FYI @suela

safin

27-07-20 07:17

reporter   ~0063245

Done.
subscriberUpdateAttributesMultiple #68

michiel

07-08-20 17:43

administrator   ~0063251

Great, many thanks

Issue History

Date Modified Username Field Change
14-07-20 12:29 safin New Issue
14-07-20 12:31 safin Note Added: 0063221
14-07-20 12:39 safin Note Added: 0063222
14-07-20 16:25 safin Tag Attached: plugin
15-07-20 21:04 michiel Note Added: 0063227
27-07-20 07:17 safin Note Added: 0063245
07-08-20 17:43 michiel Note Added: 0063251