dscl changei <path> <key> <value index> <new val>

Replaces the value at the given index in the list of values of the given key with the new value in the specified record

Arguments

NameDescription
pathPath to the record
keyDirectory Service record attribute type
value indexValue index of the key
new valNew value of the key