For example, the following URL adds a new preference, ceBgcolor, to the calendar and sets it to black:
http://calendarserver/set_userprefs.wcap ?id=b5q2o8ve2rk02nv9t6 &add_attrs=ceBgcolor=black
This URL deletes the calendar preference ceBgcolor from the user’s preferences.
http://calendarserver/set_userprefs.wcap ?id=b5q2o8ve2rk02nv9t6 &del_attrs=ceBgcolor
If the attribute to be deleted is multi-valued and there are other instances of the preference, only the first instance encountered is deleted. To remove all of the instances of this preference, multiple set_userprefs commands must be issued, one for each instance.
For example: After running get_userprefs, you see there are two values listed for icsSubscribed. To clear both of them, two commands must be issued:
/set_userprefs.wcap?id=${SESSIONID}&del_attrs=icsSubscribed
/set_userprefs.wcap?id=${SESSIONID}&del_attrs=icsSubscribed
This URL would modify the calendar preference ceBgcolor to have the value white:
http://calendarserver/set_useprefs.wcap?id=b5q2o8ve2rk02nv9t6 &set_attrs=ceBgcolor=white
This URL would allow the logged-in administrator to modify the calendar preference ceBgcolor to have the value black for user jdoe:
http://calendarserver/set_userprefs.wcap ?id=b5q2o8ve2rk02nv9t6 &userid=jdoe &set_attrs=ceBgcolor=black