The PUT /directory/v1/{dn}
endpoint functions like an LDAP moddn
operation for moving or renaming one LDAP entry when the _dn
attribute is included in the request. To change the DN of an entry, both the new DN and the naming attribute, the attribute used in the entry’s RDN (relative distinguished name), must be present in the specified entry, even if the naming attribute is not changing. This rename operation can be in the same request as other attributes are modified. However, an error from either the rename or the modify portions of the request causes the entire operation to fail.
You can use the PUT /directory/v1/{dn}
operation to change the name associated with the specified entry from Linda Jones to Linda Smith.