- Site
- Session
- User
- Callback
- Workflow
- File
- Share
- VAS
- Group
- WebDAV
Create share link
PUT
/share
Auth: JWT Required
Request
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Body Params application/json
permissions
object (PermissionSetting)
required
user_explicit
object
optional
group_explicit
object
optional
same_group
string
optional
other
string
optional
anonymous
string
optional
Example:
AQ==
everyone
string
optional
Example:
AQ==
uri
string
required
is_private
boolean | null
optional
share_view
boolean | null
optional
uri
points to a file, this field is appliable.expire
integer | null
optional
Example:
864000
price
integer | null
optional
Example:
20
password
string | null
optional
is_private
is true
.<= 32 characters
Example:
123123
Match pattern:
^[a-zA-Z0-9]+
Example
{
"permissions": {
"anonymous": "BQ==",
"everyone": "AQ=="
},
"uri": "cloudreve://my/Inspirations",
"is_private": true,
"share_view": true,
"expire": 604800,
"price": 20
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/share' \
--header 'Content-Type: application/json' \
--data-raw '{
"permissions": {
"anonymous": "BQ==",
"everyone": "AQ=="
},
"uri": "cloudreve://my/Inspirations",
"is_private": true,
"share_view": true,
"expire": 604800,
"price": 20
}'
Responses
🟢200Success
application/json
Body
data
string | null
optional
{siteURL}/s/{Share ID}/{Password}
.code
integer
required
0
- Success.Default:
0
Example:
0
msg
string
optional
error
string | null
optional
correlation_id
string <uuid> | null
optional
Example:
b4351ecc-ee1a-4455-bc94-2c3dbcc58538
Examples
{
"code": 0,
"data": "http://localhost:5173/s/g2guA/gcqzfaze",
"msg": ""
}
Modified at 2025-06-10 08:23:51