RFC 8040, "RESTCONF Protocol", January 2017Source of RFC: netconf (ops)
Errata ID: 6277
Publication Format(s) : TEXT
Reported By: Kent Watsen
Date Reported: 2020-09-03
Section 4.8.5 says:
The default value is "last".
It should say:
The default value is “last”, except when used with PUT and the target resource already exists, in which case the default is to replace the target resource without altering its position in the "ordered-by user” list or leaf-list.
The "last" default is intended for when creating a new element.
A PUT operation that replaces a list or leaf-list entry should not move the entry unless the "insert" parameter is explicitly passed.