def v1_folder_rename(request, response, kvlclient,
                     fid_src, fid_dest, sfid_src=None, sfid_dest=None):
    '''Rename a folder or a subfolder.

    The routes for this endpoint are:

    * ``POST /dossier/v1/<fid_src>/rename/<fid_dest>``
    * ``POST /dossier/v1/<fid_src>/subfolder/<sfid_src>/rename/
      <fid_dest>/subfolder/<sfid_dest>``
    '''
    src, dest = make_path(fid_src, sfid_src), make_path(fid_dest, sfid_dest)
    new_folders(kvlclient, request).move(src, dest)
    response.status = 200
Rename a folder or a subfolder.

    The routes for this endpoint are:

    * ``POST /dossier/v1/<fid_src>/rename/<fid_dest>``
    * ``POST /dossier/v1/<fid_src>/subfolder/<sfid_src>/rename/
      <fid_dest>/subfolder/<sfid_dest>``