user APIs
Add a share
Adds a new share. The share id will be auto-generated
post/user/shares
Request
- Base URL/api/v2 (relative, and the document was published on a file host, not at the API’s origin)
- Auth
- HTTP bearer
- or API key in header X-SFTPGO-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"paths": [
"/dir1",
"/dir2/file.txt",
"/dir3/subdir"
],
"allow_from": [
"192.0.2.0/24",
"2001:db8::/32"
]
}Response
successful operation
Changes
No recorded changes to this operation across all 1 revision of this API.