Auth: JWT Optional
Set the current version of the file.
Request
Add the parameter Authorization
to Headers,whose value is to concatenate the Token after the Bearer. Example:Authorization: Bearer ********************
Body Params application/json
{
"uri": "cloudreve://my/copy.md",
"version": "9ewQi2"
}
Request Code Samples
curl --location --request POST '/file/version/current' \
--header 'X-Cr-Purchase-Ticket: 1f63aa26-edc0-40ce-950a-cb4d4323158e' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"uri": "cloudreve://my/copy.md",
"version": "9ewQi2"
}'
Responses
application/json Modified at 2026-01-31 02:05:14