put https://{server}/api2/repos//dir/revert/
The commit_id is obtained by obtaining the file history, which can be used to restore to the historical status.
Response
The commit_id is obtained by obtaining the file history, which can be used to restore to the historical status.
xxxxxxxxxx
curl --request PUT \
--url https://cloud.seafile.com/api2/repos/repo_id/dir/revert/ \
--header 'accept: application/json' \
--header 'content-type: application/json'
Try It!
to start a request and see the response here! Or choose an example: