Files
filebrowser/backend/swagger/docs/docs.go
T

9208 lines
351 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs
import "github.com/swaggo/swag"
const docTemplate = `{
"schemes": {{ marshal .Schemes }},
"swagger": "2.0",
"info": {
"description": "{{escape .Description}}",
"title": "{{.Title}}",
"contact": {},
"version": "{{.Version}}"
},
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {
"/api/access": {
"get": {
"description": "Lists access rules. Can be filtered by source, path, user, or group. Can also be grouped by user or group.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Access"
],
"summary": "List access rules",
"parameters": [
{
"type": "string",
"description": "Source name (e.g. 'default')",
"name": "source",
"in": "query"
},
{
"type": "string",
"description": "Index path (e.g. /secret)",
"name": "path",
"in": "query"
},
{
"type": "string",
"description": "Username to filter rules for",
"name": "user",
"in": "query"
},
{
"type": "string",
"description": "Group name to filter rules for",
"name": "group",
"in": "query"
}
],
"responses": {
"200": {
"description": "Varies based on query. Can be access.FrontendAccessRule (when source and path specified), []access.PrincipalRule, map[string][]access.PrincipalRule, or map[string]access.FrontendAccessRule",
"schema": {
"type": "object"
}
},
"400": {
"description": "Bad request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"post": {
"description": "Add or update an access rule for a sourcePath and indexPath.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Access"
],
"summary": "Add or update access rule",
"parameters": [
{
"type": "string",
"description": "Source path prefix (e.g. mnt/storage)",
"name": "source",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Index path (e.g. /secret)",
"name": "path",
"in": "query",
"required": true
},
{
"description": "Rule details: allow (true/false), ruleCategory (user/group), value (username or groupname)",
"name": "body",
"in": "body",
"required": true,
"schema": {
"type": "object",
"properties": {
"allow": {
"type": "boolean"
},
"ruleCategory": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
],
"responses": {
"200": {
"description": "Rule added or updated",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"delete": {
"description": "Delete a user or group from an allow or deny list for a sourcePath and indexPath. When cascade=true, removes the user/group from the specified path and all subpaths.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Access"
],
"summary": "Delete access rule entry",
"parameters": [
{
"type": "string",
"description": "Source path prefix (e.g. mnt/storage)",
"name": "source",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Index path (e.g. /secret)",
"name": "path",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Rule type (allow or deny)",
"name": "ruleType",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Rule category (user or group)",
"name": "ruleCategory",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Username or groupname to remove",
"name": "value",
"in": "query",
"required": true
},
{
"type": "boolean",
"description": "Cascade delete to all subpaths (default: false)",
"name": "cascade",
"in": "query"
}
],
"responses": {
"200": {
"description": "Rule entry deleted",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"patch": {
"description": "Updates the path for a specific access rule",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Access"
],
"summary": "Update access rule path",
"parameters": [
{
"description": "Source, old path, and new path",
"name": "body",
"in": "body",
"required": true,
"schema": {
"type": "object",
"properties": {
"newPath": {
"type": "string"
},
"oldPath": {
"type": "string"
},
"source": {
"type": "string"
}
}
}
}
],
"responses": {
"200": {
"description": "Rule path updated successfully",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"400": {
"description": "Bad request - missing or invalid parameters",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/access/group": {
"put": {
"description": "Creates the group if missing and replaces its member list. When create is true, a group that already exists returns 409.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Access"
],
"summary": "Create or update a group",
"parameters": [
{
"description": "Group name and full member list",
"name": "body",
"in": "body",
"required": true,
"schema": {
"type": "object",
"properties": {
"create": {
"type": "boolean"
},
"group": {
"type": "string"
},
"members": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
],
"responses": {
"200": {
"description": "Group saved; unknownMembers lists usernames with no matching local user",
"schema": {
"type": "object"
}
},
"400": {
"description": "Bad request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"409": {
"description": "Conflict (group already exists when create is true)",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"post": {
"description": "Adds a user to a group.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Access"
],
"summary": "Add a user to a group",
"parameters": [
{
"type": "string",
"description": "Group name",
"name": "group",
"in": "query",
"required": true
},
{
"type": "string",
"description": "User name",
"name": "user",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "User added to group successfully"
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"delete": {
"description": "Removes a user from a group. When the user parameter is omitted, deletes the whole group and removes it from all access rules.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Access"
],
"summary": "Remove a user from a group or delete a group",
"parameters": [
{
"type": "string",
"description": "Group name",
"name": "group",
"in": "query",
"required": true
},
{
"type": "string",
"description": "User name",
"name": "user",
"in": "query"
}
],
"responses": {
"200": {
"description": "User removed from group successfully"
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/access/groups": {
"get": {
"description": "Returns a list of all groups or the groups for a specific user.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Access"
],
"summary": "Get all groups or groups for a user",
"parameters": [
{
"type": "string",
"description": "User name",
"name": "user",
"in": "query"
},
{
"type": "boolean",
"description": "Also return each group's member list (ignored when user is set)",
"name": "members",
"in": "query"
}
],
"responses": {
"200": {
"description": "Object containing a list of groups",
"schema": {
"$ref": "#/definitions/web.GroupListResponse"
}
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/access/user-groups": {
"put": {
"description": "Replaces all of a user's group memberships in one request. Every group in the list must already exist.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Access"
],
"summary": "Replace a user's group memberships",
"parameters": [
{
"description": "Username and full group list",
"name": "body",
"in": "body",
"required": true,
"schema": {
"type": "object",
"properties": {
"groups": {
"type": "array",
"items": {
"type": "string"
}
},
"user": {
"type": "string"
}
}
}
}
],
"responses": {
"200": {
"description": "User groups updated",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "User not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/auth/login": {
"post": {
"description": "Authenticate a user with a username and password. The password must be URL-encoded and sent in the X-Password header to support special characters (e.g., ^, %, £, €, etc.).",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Auth"
],
"summary": "User login",
"parameters": [
{
"type": "string",
"description": "Username",
"name": "username",
"in": "query",
"required": true
},
{
"type": "string",
"description": "ReCaptcha response token (if enabled)",
"name": "recaptcha",
"in": "query"
},
{
"type": "string",
"description": "URL-encoded password",
"name": "X-Password",
"in": "header",
"required": true
},
{
"type": "string",
"description": "TOTP code (if 2FA is enabled)",
"name": "X-Secret",
"in": "header"
}
],
"responses": {
"200": {
"description": "JWT token for authentication",
"schema": {
"type": "string"
}
},
"401": {
"description": "Unauthorized - authentication failed",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Forbidden - authentication failed",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"429": {
"description": "Too many requests - rate limited or temporarily locked out after failed attempts",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/auth/logout": {
"post": {
"description": "Returns a logout URL for the frontend to redirect to.",
"produces": [
"application/json"
],
"tags": [
"Auth"
],
"summary": "User Logout",
"parameters": [
{
"type": "string",
"description": "JWT token",
"name": "auth",
"in": "query"
}
],
"responses": {
"200": {
"description": "{\"logoutUrl\": \"http://...\"}",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/auth/oidc/callback": {
"get": {
"description": "Handles OIDC login callback.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Auth"
],
"summary": "OIDC callback",
"parameters": [
{
"type": "string",
"description": "OIDC code",
"name": "code",
"in": "query"
},
{
"type": "string",
"description": "OIDC state",
"name": "state",
"in": "query"
}
],
"responses": {
"200": {
"description": "OIDC callback result",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"400": {
"description": "Bad request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/auth/oidc/login": {
"get": {
"description": "Initiates OIDC login flow.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Auth"
],
"summary": "OIDC login",
"responses": {
"302": {
"description": "Redirect to OIDC provider",
"schema": {
"type": "string"
}
}
}
}
},
"/api/auth/otp/generate": {
"post": {
"description": "Generates a new TOTP secret and QR code for the authenticated user. The password must be URL-encoded and sent in the X-Password header to support special characters.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Auth"
],
"summary": "Generate OTP",
"parameters": [
{
"type": "string",
"description": "Username",
"name": "username",
"in": "query",
"required": true
},
{
"type": "string",
"description": "URL-encoded password",
"name": "X-Password",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "OTP secret generated successfully.",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"security": [
{
"ApiKeyAuth": []
}
]
}
},
"/api/auth/otp/verify": {
"post": {
"description": "Verifies the provided TOTP code for the authenticated user. The password must be URL-encoded and sent in the X-Password header to support special characters.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Auth"
],
"summary": "Verify OTP",
"parameters": [
{
"type": "string",
"description": "Username",
"name": "username",
"in": "query",
"required": true
},
{
"type": "string",
"description": "URL-encoded password",
"name": "X-Password",
"in": "header",
"required": true
},
{
"type": "string",
"description": "TOTP code to verify",
"name": "X-Secret",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "OTP token is valid.",
"schema": {
"$ref": "#/definitions/web.HttpResponse"
}
},
"401": {
"description": "Unauthorized - invalid TOTP token",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"security": [
{
"ApiKeyAuth": []
}
]
}
},
"/api/auth/password/change-required": {
"post": {
"description": "Verifies the current password and sets a new password when requirePasswordChange is set. Issues a JWT on success.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Auth"
],
"summary": "Change required password at login",
"parameters": [
{
"type": "string",
"description": "Username",
"name": "username",
"in": "query",
"required": true
},
{
"type": "string",
"description": "URL-encoded current password",
"name": "X-Password",
"in": "header",
"required": true
},
{
"type": "string",
"description": "TOTP code (if 2FA is enabled)",
"name": "X-Secret",
"in": "header"
},
{
"description": "New password and confirmation",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/web.changeRequiredPasswordBody"
}
}
],
"responses": {
"200": {
"description": "JWT token for authentication",
"schema": {
"type": "string"
}
},
"400": {
"description": "Bad request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"401": {
"description": "Unauthorized",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/auth/renew": {
"post": {
"description": "Refresh the authentication token for a logged-in user.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Auth"
],
"summary": "Renew authentication token",
"responses": {
"200": {
"description": "New JWT token generated",
"schema": {
"type": "string"
}
},
"401": {
"description": "Unauthorized - invalid token",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Forbidden - non-session token",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/auth/signup": {
"post": {
"description": "Register a new user account with a username and password.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Auth"
],
"summary": "User signup",
"responses": {
"201": {
"description": "User created successfully",
"schema": {
"type": "string"
}
},
"400": {
"description": "Bad request - invalid input",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"405": {
"description": "Method not allowed - signup is disabled",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"409": {
"description": "Conflict - user already exists",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/auth/token": {
"get": {
"description": "Get a specific API token.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Auth"
],
"summary": "Get API token",
"parameters": [
{
"type": "string",
"description": "Name of the API token to retrieve",
"name": "name",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "API token details",
"schema": {
"$ref": "#/definitions/web.AuthTokenFrontend"
}
},
"404": {
"description": "Not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"post": {
"description": "Create an API token with specified name, duration, and permissions.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Auth"
],
"summary": "Create API Token",
"parameters": [
{
"type": "string",
"description": "Name of the API token",
"name": "name",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Duration of the API token in days",
"name": "days",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Global permissions (comma-separated: admin, api, share, realtime). Send \\",
"name": "permissions",
"in": "query"
},
{
"type": "boolean",
"description": "When true, create a minimal token (standard JWT claims only). When false, create a customized token using permissions (may be empty).",
"name": "minimal",
"in": "query"
}
],
"responses": {
"200": {
"description": "Token created successfully, response contains json object with token",
"schema": {
"$ref": "#/definitions/web.HttpResponse"
}
},
"400": {
"description": "Bad request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"409": {
"description": "Conflict",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"delete": {
"description": "Delete an API token with specified name.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Auth"
],
"summary": "Delete API token",
"parameters": [
{
"type": "string",
"description": "Name of the API token to delete",
"name": "name",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "API token deleted successfully",
"schema": {
"$ref": "#/definitions/web.HttpResponse"
}
},
"404": {
"description": "Not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/auth/token/list": {
"get": {
"description": "List all API tokens or retrieve details for a specific token.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Auth"
],
"summary": "List API tokens",
"responses": {
"200": {
"description": "List of API tokens",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/web.AuthTokenFrontend"
}
}
},
"404": {
"description": "Not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/auth/webauthn/begin-login": {
"post": {
"description": "Verifies the user's password and returns a WebAuthn assertion challenge for passkey MFA.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Auth"
],
"summary": "Begin passkey MFA login",
"parameters": [
{
"type": "string",
"description": "Username",
"name": "username",
"in": "query",
"required": true
},
{
"type": "string",
"description": "URL-encoded password",
"name": "X-Password",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "Passkey assertion options",
"schema": {
"type": "object",
"additionalProperties": true
}
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/auth/webauthn/begin-register": {
"post": {
"description": "Returns WebAuthn credential creation options for adding a new passkey.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Auth"
],
"summary": "Begin passkey registration",
"responses": {
"200": {
"description": "Passkey creation options",
"schema": {
"type": "object",
"additionalProperties": true
}
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/auth/webauthn/finish-login": {
"post": {
"description": "Verifies the WebAuthn assertion and returns a JWT token.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Auth"
],
"summary": "Finish passkey MFA login",
"parameters": [
{
"type": "string",
"description": "Passkey session ID from begin-login",
"name": "session_id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "JWT token",
"schema": {
"type": "string"
}
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/auth/webauthn/finish-register": {
"post": {
"description": "Verifies the attestation and stores the new passkey credential.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Auth"
],
"summary": "Finish passkey registration",
"parameters": [
{
"type": "string",
"description": "Registration session ID",
"name": "session_id",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Display name for the passkey",
"name": "name",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/auth/webauthn/{id}": {
"delete": {
"description": "Removes a passkey credential by its ID.",
"tags": [
"Auth"
],
"summary": "Delete a passkey credential",
"parameters": [
{
"type": "string",
"description": "Base64-encoded credential ID",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/media/lyrics": {
"get": {
"description": "Returns raw lyrics text and its format (lrc, elrc, srt, vtt, embedded) from a sidecar file or embedded tags.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Media"
],
"summary": "Get lyrics for an audio file",
"parameters": [
{
"type": "string",
"description": "Path to the directory or file",
"name": "path",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Source name",
"name": "source",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "Raw lyrics text and format",
"schema": {
"type": "object",
"additionalProperties": true
}
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/media/metadata": {
"get": {
"description": "Same ExtendedFileInfo as resources GET with metadata=true (typically used for directories).",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Media"
],
"summary": "Directory with media metadata",
"parameters": [
{
"type": "string",
"description": "Path to the directory or file",
"name": "path",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Source name",
"name": "source",
"in": "query",
"required": true
},
{
"type": "boolean",
"description": "When true, include embedded album art bytes in audio metadata",
"name": "albumArt",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/iteminfo.ExtendedFileInfo"
}
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/media/stream": {
"get": {
"description": "Returns raw file bytes for inline UI viewing in capped byte ranges. Requires a viewToken minted by GET /resources. Media files must use Range requests; full-file GET responses are rejected. Never counts toward download limits or activity.",
"consumes": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Stream content of a single media file for inline viewing",
"parameters": [
{
"type": "string",
"description": "Source name for the file (required)",
"name": "source",
"in": "query",
"required": true
},
{
"type": "string",
"description": "File path",
"name": "file",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Opaque view grant token from file metadata",
"name": "viewToken",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "Raw file content (inline)",
"schema": {
"type": "file"
}
},
"403": {
"description": "Missing or invalid view token",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "File not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/media/subtitles": {
"get": {
"description": "Returns raw subtitle content from external files or embedded streams",
"consumes": [
"application/json"
],
"produces": [
"text/plain"
],
"tags": [
"Media"
],
"summary": "Get subtitle content",
"parameters": [
{
"type": "string",
"description": "Index path to the video file",
"name": "path",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Source name for the desired source",
"name": "source",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Subtitle track name (filename for external, descriptive name for embedded)",
"name": "name",
"in": "query",
"required": true
},
{
"type": "boolean",
"description": "Whether this is an embedded stream (true) or external file (false), defaults to false",
"name": "embedded",
"in": "query"
}
],
"responses": {
"200": {
"description": "Raw subtitle content in original format",
"schema": {
"type": "string"
}
},
"400": {
"description": "Bad request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Resource not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/office/callback": {
"get": {
"description": "Receives callbacks from OnlyOffice document server for document status changes and saves",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Office"
],
"summary": "Handle OnlyOffice document server callback",
"parameters": [
{
"type": "string",
"description": "Source name",
"name": "source",
"in": "query"
},
{
"type": "string",
"description": "File path",
"name": "path",
"in": "query"
},
{
"type": "string",
"description": "Share hash (for public shares)",
"name": "hash",
"in": "query"
}
],
"responses": {
"200": {
"description": "Callback processed successfully",
"schema": {
"type": "object",
"additionalProperties": true
}
},
"400": {
"description": "Invalid callback data",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"security": [
{
"ApiKeyAuth": []
}
]
},
"post": {
"description": "Receives callbacks from OnlyOffice document server for document status changes and saves",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Office"
],
"summary": "Handle OnlyOffice document server callback",
"parameters": [
{
"type": "string",
"description": "Source name",
"name": "source",
"in": "query"
},
{
"type": "string",
"description": "File path",
"name": "path",
"in": "query"
},
{
"type": "string",
"description": "Share hash (for public shares)",
"name": "hash",
"in": "query"
}
],
"responses": {
"200": {
"description": "Callback processed successfully",
"schema": {
"type": "object",
"additionalProperties": true
}
},
"400": {
"description": "Invalid callback data",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"security": [
{
"ApiKeyAuth": []
}
]
}
},
"/api/office/config": {
"get": {
"description": "Returns the configuration needed for OnlyOffice document editor client",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Office"
],
"summary": "Get OnlyOffice client configuration",
"parameters": [
{
"type": "string",
"description": "Source name",
"name": "source",
"in": "query"
},
{
"type": "string",
"description": "File path",
"name": "path",
"in": "query"
},
{
"type": "string",
"description": "Share hash (for public shares)",
"name": "hash",
"in": "query"
}
],
"responses": {
"200": {
"description": "OnlyOffice configuration",
"schema": {
"type": "object",
"additionalProperties": true
}
},
"400": {
"description": "Missing or invalid parameters",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"security": [
{
"ApiKeyAuth": []
}
]
}
},
"/api/resources": {
"get": {
"description": "Returns metadata and optionally file contents for a specified resource path.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Get resource information",
"parameters": [
{
"type": "string",
"description": "Path to the resource",
"name": "path",
"in": "query",
"required": true
},
{
"type": "string",
"description": "When true, omit index-level extended fields (e.g. hasPreview); does not disable ffmpeg/media extraction",
"name": "skipExtendedAttrs",
"in": "query"
},
{
"type": "string",
"description": "Source name for the desired source, default is used if not provided",
"name": "source",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Include file content if true",
"name": "content",
"in": "query"
},
{
"type": "string",
"description": "When true, run audio/video metadata extraction, subtitles, and directory media batch processing",
"name": "metadata",
"in": "query"
},
{
"type": "string",
"description": "Optional checksum validation",
"name": "checksum",
"in": "query"
}
],
"responses": {
"200": {
"description": "Resource metadata",
"schema": {
"$ref": "#/definitions/iteminfo.FileInfo"
}
},
"400": {
"description": "Missing or invalid path query parameter",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Resource not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"put": {
"description": "Updates an existing file at the specified path.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Update a file resource",
"parameters": [
{
"type": "string",
"description": "Destination path where to place the files inside the destination source",
"name": "path",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Source name for the desired source, default is used if not provided",
"name": "source",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "Resource updated successfully"
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Resource not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"405": {
"description": "Method not allowed",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"post": {
"description": "Creates a new resource or uploads a file at the specified path. Supports file uploads and directory creation.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Create or upload a resource",
"parameters": [
{
"type": "string",
"description": "url encoded destination path where to place the files inside the destination source",
"name": "path",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Name for the desired filebrowser destination source name, default is used if not provided",
"name": "source",
"in": "query",
"required": true
},
{
"type": "boolean",
"description": "Override existing file if true",
"name": "override",
"in": "query"
},
{
"type": "boolean",
"description": "Explicitly specify if the resource is a directory",
"name": "isDir",
"in": "query"
}
],
"responses": {
"200": {
"description": "Resource created successfully"
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Resource not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"409": {
"description": "Conflict - Resource already exists",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"delete": {
"description": "Deletes a resource located at the specified path.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Delete a resource",
"parameters": [
{
"type": "string",
"description": "Path to the resource",
"name": "path",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Source name for the desired source, default is used if not provided",
"name": "source",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "Resource deleted successfully"
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Resource not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"patch": {
"description": "Performs move, copy, or rename operations on multiple resources. All operations are performed atomically.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Move, copy, or rename resources",
"parameters": [
{
"description": "Move/copy request with items and action",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/web.MoveCopyRequest"
}
}
],
"responses": {
"200": {
"description": "All operations completed successfully",
"schema": {
"$ref": "#/definitions/web.MoveCopyResponse"
}
},
"207": {
"description": "Partial success - some operations succeeded, some failed",
"schema": {
"$ref": "#/definitions/web.MoveCopyResponse"
}
},
"400": {
"description": "Bad request - invalid JSON or parameters",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Resource not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "All operations failed",
"schema": {
"$ref": "#/definitions/web.MoveCopyResponse"
}
}
}
}
},
"/api/resources/archive": {
"post": {
"description": "Creates a zip or tar.gz archive on the server from the given paths (files and/or directories). Server-side only; no archive bytes are returned. All items must be from the same source. Folders are walked recursively; access-denied paths are silently skipped. Requires create permission. Archive size is checked against server.maxArchiveSizeGB limit if configured.\n\n**Request body parameters:**\n- **fromSource** (string, required): Source name where the paths to archive live. Example: ` + "`" + `\"default\"` + "`" + `\n- **toSource** (string, optional): Source name where the archive file will be written. Defaults to fromSource if omitted. Example: ` + "`" + `\"backups\"` + "`" + `\n- **paths** (array of strings, required): Paths of files or directories to add to the archive (relative to fromSource). Directories are walked; access-denied entries are skipped. Example: ` + "`" + `[\"/docs/file.txt\", \"/photos\"]` + "`" + `\n- **destination** (string, required): Full path where the archive file will be created (on toSource). Must end with .zip or .tar.gz (or format is inferred). Example: ` + "`" + `\"/backups/my-archive.zip\"` + "`" + `\n- **format** (string, optional): Archive format. One of: ` + "`" + `\"zip\"` + "`" + `, ` + "`" + `\"tar.gz\"` + "`" + `. Default inferred from destination extension. Example: ` + "`" + `\"zip\"` + "`" + `\n- **compression** (integer, optional): Gzip compression level for tar.gz only (0–9). 0 = default. Ignored for zip. Example: ` + "`" + `6` + "`" + `\n- **deleteAfter** (boolean, optional): If true, delete source files/directories after successful creation. Requires delete permission. Example: ` + "`" + `true` + "`" + `",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Create an archive on the server",
"parameters": [
{
"description": "Request body: fromSource, toSource (optional), paths, destination, format (optional), compression (optional)",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/web.archiveCreateRequest"
}
}
],
"responses": {
"200": {
"description": "Created; returns {\\\"path\\\": \\\"\u003cdestination path\u003e\\\"}",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"400": {
"description": "Invalid request (e.g. missing required field, invalid path)",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Forbidden (create permission or access denied)",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Source not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"413": {
"description": "Request Entity Too Large (archive size exceeds maxArchiveSizeGB limit)",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/resources/bulk": {
"delete": {
"description": "Deletes multiple resources specified in the request body. Returns a list of succeeded and failed deletions.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Bulk delete resources",
"parameters": [
{
"description": "Array of items to delete, each with source and path",
"name": "items",
"in": "body",
"required": true,
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/web.BulkDeleteItem"
}
}
}
],
"responses": {
"200": {
"description": "All resources deleted successfully",
"schema": {
"$ref": "#/definitions/web.BulkDeleteResponse"
}
},
"207": {
"description": "Partial success - some resources deleted, some failed",
"schema": {
"$ref": "#/definitions/web.BulkDeleteResponse"
}
},
"400": {
"description": "Bad request - invalid JSON or empty items array",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error - all deletions failed",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/resources/download": {
"get": {
"description": "Returns the raw content of a file, multiple files, or a directory. Supports downloading files as archives in various formats.\n\n**Filename Encoding:**\n- The Content-Disposition header will always include both:\n1. ` + "`" + `filename=\"...\"` + "`" + `: An ASCII-safe version of the filename for compatibility.\n2. ` + "`" + `filename*=utf-8\"...` + "`" + `: The full UTF-8 encoded filename (RFC 6266/5987) for modern clients.\n\n**Multiple Files:**\n- Use repeated query parameters: ` + "`" + `?file=file1.txt\u0026file=file2.txt\u0026file=file3.txt` + "`" + `\n- This supports filenames containing commas and special characters",
"consumes": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Download content of a file, multiple files, or directory",
"parameters": [
{
"type": "string",
"description": "Source name for the files (required)",
"name": "source",
"in": "query",
"required": true
},
{
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "csv",
"description": "File path (can be repeated for multiple files)",
"name": "file",
"in": "query",
"required": true
},
{
"type": "boolean",
"description": "If true, sets 'Content-Disposition' to 'inline'. Otherwise, defaults to 'attachment'.",
"name": "inline",
"in": "query"
},
{
"type": "string",
"description": "Compression algorithm for archiving multiple files or directories. Options: 'zip' and 'tar.gz'. Default is 'zip'.",
"name": "algo",
"in": "query"
}
],
"responses": {
"200": {
"description": "Raw file or directory content, or archive for multiple files",
"schema": {
"type": "file"
}
},
"202": {
"description": "Modify permissions required",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"400": {
"description": "Invalid request path",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "File or directory not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/resources/items": {
"get": {
"description": "Efficiently returns a basic list of items for the specified path and source. Use 'only' parameter to filter by only files or folders",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Get directory items",
"parameters": [
{
"type": "string",
"description": "A directory path to list child items",
"name": "path",
"in": "query",
"required": true
},
{
"type": "string",
"description": "The source name which contains the path",
"name": "source",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Filter: 'files', 'folders', or omit for both",
"name": "only",
"in": "query"
}
],
"responses": {
"200": {
"description": "lists files and folders",
"schema": {
"$ref": "#/definitions/files.Items"
}
},
"403": {
"description": "Forbidden (access denied)",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/resources/pause": {
"post": {
"description": "Sets a short-lived server flag for the given source and path. When the active chunk POST then fails (e.g. client abort), the server trims the incomplete chunk but keeps the temp partial file for resume.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Register graceful chunked upload pause",
"parameters": [
{
"type": "string",
"description": "Destination path (same as upload)",
"name": "path",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Source name (same as upload)",
"name": "source",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "Pause registered"
},
"400": {
"description": "Bad request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Source not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/resources/preview": {
"get": {
"description": "Returns a preview image based on the requested path and size.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Get image preview",
"parameters": [
{
"type": "string",
"description": "File path of the image to preview",
"name": "path",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Preview size ('small' or 'large'). Default is based on server settings.Config.",
"name": "size",
"in": "query"
}
],
"responses": {
"200": {
"description": "Preview image content",
"schema": {
"type": "file"
}
},
"202": {
"description": "Download permissions required",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"400": {
"description": "Invalid request path",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "File not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"415": {
"description": "Unsupported file type for preview",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"501": {
"description": "Preview generation not implemented",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/resources/preview/text": {
"get": {
"description": "Returns the first ~16KB of a text-like file as JSON. Markdown, HTML, and CSS are returned as raw text; RTF is converted to HTML. The response is NOT sanitized: clients must sanitize HTML before rendering it. Responses are not cached on the server.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Get text preview",
"parameters": [
{
"type": "string",
"description": "File path of the text file to preview",
"name": "path",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Source name",
"name": "source",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "Text preview content",
"schema": {
"$ref": "#/definitions/preview.TextPreviewResult"
}
},
"400": {
"description": "Invalid request path",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "User is not allowed to view files in this source",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "File not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"415": {
"description": "File type is not supported for text preview, or the file is binary",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"501": {
"description": "Previews are disabled",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/resources/unarchive": {
"post": {
"description": "Extracts a zip or tar.gz archive on the server into the given destination directory. Server-side only; no extracted bytes are returned. Supports extracting to a different source via toSource. Requires create permission. Archive size is checked against server.maxArchiveSizeGB limit if configured.\n\n**Request body parameters:**\n- **fromSource** (string, required): Source name where the archive file lives. Example: ` + "`" + `\"default\"` + "`" + `\n- **toSource** (string, optional): Source name where contents will be extracted. Defaults to fromSource if omitted. Example: ` + "`" + `\"restored\"` + "`" + `\n- **path** (string, required): Path to the archive file (on fromSource). Must be .zip, .tar.gz, or .tgz. Example: ` + "`" + `\"/downloads/data.zip\"` + "`" + `\n- **destination** (string, required): Directory path (on toSource) to extract into. Example: ` + "`" + `\"/projects/imported\"` + "`" + `\n- **deleteAfter** (boolean, optional): If true, delete the archive file after successful extraction. Default: false. Example: ` + "`" + `true` + "`" + `\n- **filenameEncoding** (string, optional): Fallback ZIP filename encoding: utf-8, cp932, gb18030, big5, euc-kr, cp437, windows-1252. Unicode metadata takes precedence. Omit to use a suggestion; ambiguous encodings require a selection.\n- **preview** (boolean, optional): Return ZIP encoding candidates and sample filenames without extracting or deleting anything. Requires the same source/destination permissions as extraction.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Extract an archive on the server",
"parameters": [
{
"description": "Request body: fromSource, toSource (optional), path, destination, deleteAfter (optional)",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/web.unarchiveRequest"
}
}
],
"responses": {
"200": {
"description": "Preview returns suggested and candidates; extraction returns path and source. Extracted; returns {\\\"path\\\": \\\"\u003cdestination path\u003e\\\", \\\"source\\\": \\\"\u003ctoSource\u003e\\\"}",
"schema": {
"type": "object",
"additionalProperties": true
}
},
"400": {
"description": "Invalid request (e.g. missing required field, unsupported format)",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Forbidden (create permission or access denied)",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Source or archive file not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"413": {
"description": "Request Entity Too Large (archive size exceeds maxArchiveSizeGB limit)",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/resources/view": {
"get": {
"description": "Returns raw file bytes for inline UI viewing. Requires a viewToken minted by GET /resources. Never counts toward download limits or activity and does not require download permission.",
"consumes": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "View content of a single non-media file inline",
"parameters": [
{
"type": "string",
"description": "Source name for the file (required)",
"name": "source",
"in": "query",
"required": true
},
{
"type": "string",
"description": "File path",
"name": "file",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Opaque view grant token from file metadata",
"name": "viewToken",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "Raw file content (inline)",
"schema": {
"type": "file"
}
},
"403": {
"description": "Missing or invalid view token",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "File not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/resources/view-token": {
"post": {
"description": "Mints or extends a source-scoped view token for inline viewing. Authenticated routes require a web session (not a named API token). Public share routes accept anonymous users when the share allows it.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Refresh view token",
"parameters": [
{
"type": "string",
"description": "Source name or share hash",
"name": "source",
"in": "query"
},
{
"type": "string",
"description": "Share hash (public share routes)",
"name": "hash",
"in": "query"
},
{
"type": "string",
"description": "Existing view token to extend",
"name": "viewToken",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/web.viewTokenResponse"
}
},
"403": {
"description": "Missing permission or API token used",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/settings": {
"get": {
"description": "Returns the current configuration settings for signup, user directories, rules, frontend.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Settings"
],
"summary": "Get system settings",
"parameters": [
{
"type": "string",
"description": "Property to retrieve: ` + "`" + `userDefaults` + "`" + `, ` + "`" + `frontend` + "`" + `, ` + "`" + `auth` + "`" + `, ` + "`" + `server` + "`" + `, ` + "`" + `sources` + "`" + `",
"name": "property",
"in": "query"
}
],
"responses": {
"200": {
"description": "System settings data",
"schema": {
"$ref": "#/definitions/settings.Settings"
}
}
}
}
},
"/api/settings/config": {
"get": {
"description": "Returns the current running configuration settings as YAML format with optional comments and filtering.",
"consumes": [
"application/json"
],
"produces": [
"text/plain"
],
"tags": [
"Settings"
],
"summary": "Get system settings as YAML",
"parameters": [
{
"type": "boolean",
"description": "Show all values (true) or only non-default values (false, default)",
"name": "full",
"in": "query"
},
{
"type": "boolean",
"description": "Include comments in YAML (true) or plain YAML (false, default)",
"name": "comments",
"in": "query"
}
],
"responses": {
"200": {
"description": "System settings in YAML format",
"schema": {
"type": "string"
}
}
}
}
},
"/api/settings/media": {
"get": {
"description": "Returns the media settings the caller is allowed to see.\nAdmins get the full settings, including ffmpeg and hardware options, so they can edit them.\nEveryone else gets a small read-only view: whether transcoding is on, how many\ntranscodes they can run at once, which quality presets are enabled, and which image\npreviews the server can generate. Keys in the view are the same for admins and users.",
"produces": [
"application/json"
],
"tags": [
"Settings"
],
"summary": "Get runtime media settings",
"responses": {
"200": {
"description": "Media settings",
"schema": {
"$ref": "#/definitions/web.mediaSettingsResponse"
}
}
}
},
"patch": {
"description": "Merges a partial JSON patch into the DB-backed media settings and applies them at runtime.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Settings"
],
"summary": "Update runtime media settings",
"responses": {
"200": {
"description": "Updated media settings",
"schema": {
"$ref": "#/definitions/web.mediaSettingsResponse"
}
}
}
}
},
"/api/share": {
"get": {
"description": "Retrieves all share links associated with a specific resource path for the current user.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Shares"
],
"summary": "Get share links by path",
"parameters": [
{
"type": "string",
"description": "Resource path for which to retrieve share links",
"name": "path",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Source name for share links",
"name": "source",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "List of share links for the specified path",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/share.ShareFrontend"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"post": {
"description": "Creates a new share link with an optional expiration time and password protection.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Shares"
],
"summary": "Create a share link",
"parameters": [
{
"description": "Share creation parameters",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/share.SharePostBody"
}
}
],
"responses": {
"200": {
"description": "Created share link",
"schema": {
"$ref": "#/definitions/share.ShareFrontend"
}
},
"400": {
"description": "Bad request - failed to decode body",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"delete": {
"description": "Deletes a share link specified by its hash.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Shares"
],
"summary": "Delete a share link",
"parameters": [
{
"type": "string",
"description": "Hash of the share link to delete",
"name": "hash",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "Share link deleted successfully"
},
"400": {
"description": "Bad request - missing or invalid hash",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"patch": {
"description": "Updates the path for a specific share link identified by hash",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Shares"
],
"summary": "Update share link path",
"parameters": [
{
"description": "Hash and new path",
"name": "body",
"in": "body",
"required": true,
"schema": {
"type": "object",
"properties": {
"hash": {
"type": "string"
},
"path": {
"type": "string"
}
}
}
}
],
"responses": {
"200": {
"description": "Updated share link",
"schema": {
"$ref": "#/definitions/share.ShareFrontend"
}
},
"400": {
"description": "Bad request - missing or invalid parameters",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/share/direct": {
"get": {
"description": "Mints a download-only ephemeral token for an existing password-protected share. Requires the share owner or an admin plus a valid X-SHARE-PASSWORD header. API-only; not used by the FileBrowser UI. Default duration is 60 minutes. Maximum token lifetime is 24 hours regardless of unit.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Shares"
],
"summary": "Get direct download link",
"parameters": [
{
"type": "string",
"description": "Share hash",
"name": "hash",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Duration value (default: 60)",
"name": "duration",
"in": "query"
},
{
"type": "string",
"description": "Duration unit: minutes or hours (default: minutes)",
"name": "unit",
"in": "query"
},
{
"type": "string",
"description": "Maximum number of downloads allowed with this token (default: unlimited within TTL)",
"name": "count",
"in": "query"
},
{
"type": "string",
"description": "Share password",
"name": "X-SHARE-PASSWORD",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "Ephemeral download link",
"schema": {
"$ref": "#/definitions/web.DirectDownloadResponse"
}
},
"400": {
"description": "Bad request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"401": {
"description": "Invalid or missing share password",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Share not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/share/list": {
"get": {
"description": "Returns a list of share links for the current user, or all links if the user is an admin.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Shares"
],
"summary": "List share links",
"responses": {
"200": {
"description": "List of share links",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/share.ShareFrontend"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/tools/duplicate-finder": {
"get": {
"description": "Finds duplicate files using multi-stage filtering: size → type → fuzzy filename → progressive checksums. Files must match on size, MIME type, and have 50%+ filename similarity before checksum verification. Large fuzzy groups (\u003e10 files) are skipped to avoid false positives. Checksums use 2-pass progressive verification (header → middle) for accuracy while minimizing disk I/O (~16KB read per file).",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Tools"
],
"summary": "Find Duplicate Files",
"parameters": [
{
"type": "string",
"description": "Source name for the desired source",
"name": "source",
"in": "query",
"required": true
},
{
"type": "string",
"description": "path within user scope to search",
"name": "scope",
"in": "query"
},
{
"type": "integer",
"description": "Minimum file size in megabytes (default: 1)",
"name": "minSizeMb",
"in": "query"
}
],
"responses": {
"200": {
"description": "List of duplicate file groups with metadata. Response includes 'incomplete' flag if processing stopped early due to resource limits.",
"schema": {
"$ref": "#/definitions/web.duplicateResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"503": {
"description": "Service Unavailable (indexing in progress or another search running)",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/tools/file-watcher": {
"get": {
"description": "Returns the last N lines of a file",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Tools"
],
"summary": "Watch a file",
"parameters": [
{
"type": "string",
"description": "Path to the file",
"name": "path",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Source name",
"name": "source",
"in": "query",
"required": true
},
{
"type": "integer",
"description": "Number of lines to read (default: 10, max: 50)",
"name": "lines",
"in": "query"
},
{
"type": "boolean",
"description": "Return minimal response for latency checking",
"name": "latencyCheck",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/web.fileWatchResponse"
}
},
"400": {
"description": "Invalid request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Permission denied",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "File not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/tools/file-watcher/sse": {
"get": {
"description": "Establishes an SSE connection to receive periodic file updates",
"tags": [
"Tools"
],
"summary": "Watch a file via SSE",
"parameters": [
{
"type": "string",
"description": "Path to the file",
"name": "path",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Source name",
"name": "source",
"in": "query",
"required": true
},
{
"type": "integer",
"description": "Number of lines to read (default: 10, max: 50)",
"name": "lines",
"in": "query"
},
{
"type": "integer",
"description": "Update interval in seconds (1, 2, 5, 10, 15, or 30, requires realtime permission for SSE)",
"name": "interval",
"in": "query"
}
],
"responses": {
"200": {
"description": "SSE stream"
},
"400": {
"description": "Invalid request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Permission denied",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "File not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/tools/search": {
"get": {
"description": "Searches for files matching the provided query. Returns file paths and metadata based on the user's session and scope. Supports searching across multiple sources when using the 'sources' parameter.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Tools"
],
"summary": "Search Files",
"parameters": [
{
"type": "string",
"description": "Filter prefix or full search text (required when no terms are supplied)",
"name": "query",
"in": "query"
},
{
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "csv",
"description": "Repeated: one literal search term per parameter; combined with OR unless termJoin=and",
"name": "terms",
"in": "query"
},
{
"type": "string",
"description": "Comma-separated source names when not using repeated scope=source:path",
"name": "sources",
"in": "query"
},
{
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "csv",
"description": "Repeated: 'sourceName:relativePath' per source",
"name": "scope",
"in": "query"
},
{
"type": "integer",
"description": "Unix seconds; only results modified strictly before this time",
"name": "olderThan",
"in": "query"
},
{
"type": "integer",
"description": "Unix seconds; only results modified on or after this time",
"name": "newerThan",
"in": "query"
},
{
"type": "boolean",
"description": "When true, match indexed file names with SQLite GLOB (wildcard patterns)",
"name": "useWildcard",
"in": "query"
},
{
"type": "integer",
"description": "Requested advanced search limit, capped by server.searchResultsLimit (default 1000); omitted for quick search (100)",
"name": "limit",
"in": "query"
},
{
"type": "string",
"description": "Optional: 'and' to require all repeated 'terms' match; default is OR",
"name": "termJoin",
"in": "query"
}
],
"responses": {
"200": {
"description": "List of search results with source field populated",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/indexing.SearchResult"
}
}
},
"400": {
"description": "Bad Request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/users": {
"get": {
"description": "Returns all users (admins) or only the current user; with ?username=self, the logged-in user; with ?username=login, that user if permitted. Query id= is not supported.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Users"
],
"summary": "List users or get one by username",
"parameters": [
{
"type": "string",
"description": "Login name, or 'self' for the current session user",
"name": "username",
"in": "query"
}
],
"responses": {
"200": {
"description": "User details or list of users",
"schema": {
"$ref": "#/definitions/users.FrontendUser"
}
},
"400": {
"description": "Bad Request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Not Found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"post": {
"description": "Adds a new user to the system. When the authenticated actor uses password login, they must send their current password in the X-Password header.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Users"
],
"summary": "Create a new user",
"parameters": [
{
"type": "string",
"description": "Actor's current password (URL-encoded); required for password-login actors",
"name": "X-Password",
"in": "header"
},
{
"description": "User data to create a new user",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/users.FrontendUser"
}
}
],
"responses": {
"201": {
"description": "Created user"
},
"400": {
"description": "Bad Request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"401": {
"description": "Unauthorized - invalid or missing actor password when required",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"delete": {
"description": "Deletes a user identified by login name.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Users"
],
"summary": "Delete a user by username",
"parameters": [
{
"type": "string",
"description": "Username",
"name": "username",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "User deleted successfully"
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"patch": {
"description": "Updates the details of a user identified by ID. which must list the JSON field names to update. When the authenticated actor uses password login, they must send their current password in the X-Password header unless the update only touches NonAdminEditable profile fields (not password). Any admin-only field requires confirmation.",
"consumes": [
"application/json"
],
"tags": [
"Users"
],
"summary": "Update a user's details",
"parameters": [
{
"type": "string",
"description": "user ID to update",
"name": "id",
"in": "query"
},
{
"type": "string",
"description": "usename to update",
"name": "id",
"in": "query"
},
{
"type": "string",
"description": "Actor's current password (URL-encoded); required for password-login actors when updating password or any field outside NonAdminEditable",
"name": "X-Password",
"in": "header"
},
{
"description": "User data to update",
"name": "data",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/users.FrontendUser"
}
}
],
"responses": {
"204": {
"description": "No Content - User updated successfully"
},
"400": {
"description": "Bad Request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"401": {
"description": "Unauthorized - invalid or missing actor password when required",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/users/pinned-items": {
"patch": {
"description": "Patches one pinned item at a time. Defaults to add; pass ?action=remove to unpin.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Users"
],
"summary": "Add or remove a pinned item",
"parameters": [
{
"type": "string",
"description": "add (default) or remove",
"name": "action",
"in": "query"
},
{
"description": "Pinned item",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/web.pinnedItemPatchRequest"
}
}
],
"responses": {
"204": {
"description": "No Content"
},
"400": {
"description": "Bad Request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/api/wopi/session": {
"get": {
"description": "Returns the editor URL and the access token the browser posts to it.",
"produces": [
"application/json"
],
"tags": [
"Office"
],
"summary": "Open a file in the WOPI editor",
"parameters": [
{
"type": "string",
"description": "Source name",
"name": "source",
"in": "query",
"required": true
},
{
"type": "string",
"description": "File path",
"name": "path",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/web.wopiSessionResponse"
}
},
"400": {
"description": "Missing or invalid parameters",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "No view permission",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"415": {
"description": "The editor does not handle this file type",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"503": {
"description": "Editor discovery unavailable",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"security": [
{
"ApiKeyAuth": []
}
]
}
},
"/public/api/media/lyrics": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Media"
],
"summary": "Get lyrics for an audio file (public share)",
"parameters": [
{
"type": "string",
"description": "Share hash",
"name": "hash",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Path within the share",
"name": "path",
"in": "query"
}
],
"responses": {
"200": {
"description": "Raw lyrics text and format",
"schema": {
"type": "object",
"additionalProperties": true
}
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/public/api/media/metadata": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Media"
],
"summary": "Directory with media metadata (public share)",
"parameters": [
{
"type": "string",
"description": "Share hash",
"name": "hash",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Path within the share",
"name": "path",
"in": "query"
},
{
"type": "boolean",
"description": "When true, include embedded album art bytes in audio metadata (heavier)",
"name": "albumArt",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/iteminfo.ExtendedFileInfo"
}
}
}
}
},
"/public/api/media/stream": {
"get": {
"description": "Returns raw file bytes for inline UI viewing in capped byte ranges on a share link. Requires viewToken from GET /public/api/resources. Media files must use Range requests. Does not count toward download limits.",
"consumes": [
"application/json"
],
"produces": [
"application/octet-stream"
],
"tags": [
"Resources"
],
"summary": "Stream a single media file from a public share for inline viewing",
"parameters": [
{
"type": "string",
"description": "Share hash for authentication",
"name": "hash",
"in": "query",
"required": true
},
{
"type": "string",
"description": "File path within the share",
"name": "file",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Opaque view grant token from share file metadata",
"name": "viewToken",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "Raw file content (inline)",
"schema": {
"type": "file"
}
},
"403": {
"description": "Missing or invalid view token",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Share or file not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/public/api/media/subtitles": {
"get": {
"produces": [
"text/plain"
],
"tags": [
"Media"
],
"summary": "Get subtitle content (public share)",
"parameters": [
{
"type": "string",
"description": "Share hash",
"name": "hash",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Path within the share",
"name": "path",
"in": "query"
},
{
"type": "string",
"description": "Subtitle track name",
"name": "name",
"in": "query",
"required": true
},
{
"type": "boolean",
"description": "Whether this is an embedded stream",
"name": "embedded",
"in": "query"
}
],
"responses": {
"200": {
"description": "Raw subtitle content",
"schema": {
"type": "string"
}
}
}
}
},
"/public/api/resources": {
"get": {
"description": "Returns metadata for files or directories accessible via a public share link. Browsing is disabled for upload-only shares.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Get file/directory information from a public share",
"parameters": [
{
"type": "string",
"description": "Share hash for authentication",
"name": "hash",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Path within the share to retrieve information for. Defaults to share root.",
"name": "path",
"in": "query"
},
{
"type": "string",
"description": "Include file content if true",
"name": "content",
"in": "query"
},
{
"type": "string",
"description": "Extract audio/video metadata if true",
"name": "metadata",
"in": "query"
},
{
"type": "string",
"description": "Optional checksum algorithm (md5, sha1, sha256, sha512); requires a logged-in session",
"name": "checksum",
"in": "query"
}
],
"responses": {
"200": {
"description": "File or directory metadata",
"schema": {
"$ref": "#/definitions/iteminfo.FileInfo"
}
},
"401": {
"description": "Login required for checksum generation",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Share unavailable or access denied",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Share not found or file not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"501": {
"description": "Browsing disabled for upload shares",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"put": {
"description": "Updates the content of a file in a public share.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Update a file in a public share",
"parameters": [
{
"type": "string",
"description": "Share hash for authentication",
"name": "hash",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Path to the file to update",
"name": "path",
"in": "query",
"required": true
},
{
"description": "New content for the file",
"name": "content",
"in": "body",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "File updated successfully",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"400": {
"description": "Invalid request or parameters",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Share unavailable or update not allowed",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Share not found or file not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"post": {
"description": "Handles file and directory uploads to an upload-only public share. Supports chunked uploads, conflict resolution (override), and directory creation.",
"consumes": [
"multipart/form-data"
],
"produces": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Upload files to a public upload share",
"parameters": [
{
"type": "string",
"description": "Share hash for authentication",
"name": "hash",
"in": "query",
"required": true
},
{
"type": "string",
"description": "path within the share to upload to. Must be relative to share root.",
"name": "path",
"in": "query",
"required": true
},
{
"type": "boolean",
"description": "If true, overwrite existing files/folders. Defaults to false.",
"name": "override",
"in": "query"
},
{
"type": "string",
"description": "Upload action: 'override' to replace files, 'rename' to auto-rename",
"name": "action",
"in": "query"
},
{
"type": "file",
"description": "File to upload",
"name": "file",
"in": "formData",
"required": true
}
],
"responses": {
"200": {
"description": "Upload successful",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"400": {
"description": "Invalid request or parameters",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Share unavailable or upload not allowed",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Share not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"409": {
"description": "File or directory already exists (conflict)",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error during upload",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"501": {
"description": "Uploading disabled for non-upload shares",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
},
"patch": {
"description": "Performs move, copy, or rename operations on multiple resources within a public share. All operations are performed atomically.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Move, copy, or rename resources in a public share",
"parameters": [
{
"type": "string",
"description": "Share hash for authentication",
"name": "hash",
"in": "query",
"required": true
},
{
"description": "Move/copy request with items and action",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/web.MoveCopyRequest"
}
}
],
"responses": {
"200": {
"description": "All operations completed successfully",
"schema": {
"$ref": "#/definitions/web.MoveCopyResponse"
}
},
"207": {
"description": "Partial success - some operations succeeded, some failed",
"schema": {
"$ref": "#/definitions/web.MoveCopyResponse"
}
},
"400": {
"description": "Bad request - invalid JSON or parameters",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Forbidden - modify not allowed for this share",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Share or resource not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/web.MoveCopyResponse"
}
}
}
}
},
"/public/api/resources/bulk": {
"delete": {
"description": "Deletes multiple resources specified in the request body. Returns a list of succeeded and failed deletions.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Bulk delete resources from public share",
"parameters": [
{
"type": "string",
"description": "Share hash for authentication",
"name": "hash",
"in": "query",
"required": true
},
{
"description": "Array of items to delete, each with source and path",
"name": "items",
"in": "body",
"required": true,
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/web.BulkDeleteItem"
}
}
}
],
"responses": {
"200": {
"description": "All resources deleted successfully",
"schema": {
"$ref": "#/definitions/web.BulkDeleteResponse"
}
},
"207": {
"description": "Partial success - some resources deleted, some failed",
"schema": {
"$ref": "#/definitions/web.BulkDeleteResponse"
}
},
"400": {
"description": "Bad request - invalid JSON or empty items array",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Forbidden - delete not allowed for this share",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error - all deletions failed",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/public/api/resources/download": {
"get": {
"description": "Downloads raw content from a public share. Supports single files, multiple files, or directories as archives. Enforces download limits (global or per-user) and blocks anonymous users when per-user limits are enabled.\n\n**Multiple Files:**\n- Use repeated query parameters: ` + "`" + `?file=file1.txt\u0026file=file2.txt\u0026file=file3.txt` + "`" + `\n- This supports filenames containing commas and special characters",
"consumes": [
"application/json"
],
"produces": [
"application/octet-stream"
],
"tags": [
"Resources"
],
"summary": "Download files from a public share",
"parameters": [
{
"type": "string",
"description": "Share hash for authentication",
"name": "hash",
"in": "query",
"required": true
},
{
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "csv",
"description": "File path (can be repeated for multiple files)",
"name": "file",
"in": "query",
"required": true
},
{
"type": "boolean",
"description": "If true, sets 'Content-Disposition' to 'inline'. Otherwise, defaults to 'attachment'.",
"name": "inline",
"in": "query"
},
{
"type": "string",
"description": "Compression algorithm for archiving multiple files or directories. Options: 'zip' and 'tar.gz'. Default is 'zip'.",
"name": "algo",
"in": "query"
}
],
"responses": {
"200": {
"description": "Raw file or directory content, or archive for multiple files",
"schema": {
"type": "file"
}
},
"400": {
"description": "Invalid request path or encoding",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Download limit reached, anonymous access blocked, or share unavailable",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Share not found or file not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"501": {
"description": "Downloads disabled for upload shares",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/public/api/resources/items": {
"get": {
"description": "Efficiently returns a basic list of items for the specified path in a public share. Use hash for authentication instead of source. Use 'only' parameter to filter by only files or folders.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Get directory items (public share)",
"parameters": [
{
"type": "string",
"description": "Share hash for authentication",
"name": "hash",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Path within the share to list child items. Defaults to share root.",
"name": "path",
"in": "query"
},
{
"type": "string",
"description": "Filter: 'files', 'folders', or omit for both",
"name": "only",
"in": "query"
}
],
"responses": {
"200": {
"description": "lists files and folders",
"schema": {
"$ref": "#/definitions/files.Items"
}
},
"403": {
"description": "Forbidden (access denied)",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Share not found or source not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/public/api/resources/pause": {
"post": {
"description": "Same as authenticated pause, for upload shares. Uses hash and path query parameters like other public resource APIs.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Register graceful chunked upload pause (public share)",
"parameters": [
{
"type": "string",
"description": "Share hash",
"name": "hash",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Path within the share (same as upload)",
"name": "path",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "Pause registered"
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Source not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/public/api/resources/preview": {
"get": {
"description": "Returns a preview (thumbnail) for images or videos accessible via a public share. Preview generation can be disabled globally or per-share. Not available for upload-only shares.",
"consumes": [
"application/json"
],
"produces": [
"image/jpeg"
],
"tags": [
"Resources"
],
"summary": "Get image/video preview from a public share",
"parameters": [
{
"type": "string",
"description": "Share hash for authentication",
"name": "hash",
"in": "query",
"required": true
},
{
"type": "string",
"description": "File path within the share to preview",
"name": "path",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Preview size: 'small' or 'large'. Default is based on server settings.Config.",
"name": "size",
"in": "query"
}
],
"responses": {
"200": {
"description": "Preview image content (JPEG)",
"schema": {
"type": "file"
}
},
"403": {
"description": "Share unavailable or access denied",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "File not found or preview not available",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"501": {
"description": "Previews disabled globally, for this share, or for upload shares",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/public/api/resources/preview/text": {
"get": {
"description": "Returns the first ~16KB of a text-like file in a public share as JSON. Same content rules as the authenticated endpoint. Not available for upload-only shares.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Get text preview from a public share",
"parameters": [
{
"type": "string",
"description": "Share hash for authentication",
"name": "hash",
"in": "query",
"required": true
},
{
"type": "string",
"description": "File path within the share to preview",
"name": "path",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "Text preview content",
"schema": {
"$ref": "#/definitions/preview.TextPreviewResult"
}
},
"403": {
"description": "Share unavailable, access denied, or the file viewer is disabled for this share",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "File not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"415": {
"description": "File type is not supported for text preview, or the file is binary",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"501": {
"description": "Previews disabled globally, for this share, or for upload shares",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/public/api/resources/view": {
"get": {
"description": "Returns raw file bytes for inline UI viewing on a share link. Requires viewToken from GET /public/api/resources. Does not count toward download limits.",
"consumes": [
"application/json"
],
"produces": [
"application/octet-stream"
],
"tags": [
"Resources"
],
"summary": "View a single non-media file from a public share inline",
"parameters": [
{
"type": "string",
"description": "Share hash for authentication",
"name": "hash",
"in": "query",
"required": true
},
{
"type": "string",
"description": "File path within the share",
"name": "file",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Opaque view grant token from share file metadata",
"name": "viewToken",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "Raw file content (inline)",
"schema": {
"type": "file"
}
},
"403": {
"description": "Missing or invalid view token",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Share or file not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/public/api/resources/view-token": {
"post": {
"description": "Mints or extends a source-scoped view token for inline viewing. Authenticated routes require a web session (not a named API token). Public share routes accept anonymous users when the share allows it.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Resources"
],
"summary": "Refresh view token",
"parameters": [
{
"type": "string",
"description": "Source name or share hash",
"name": "source",
"in": "query"
},
{
"type": "string",
"description": "Share hash (public share routes)",
"name": "hash",
"in": "query"
},
{
"type": "string",
"description": "Existing view token to extend",
"name": "viewToken",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/web.viewTokenResponse"
}
},
"403": {
"description": "Missing permission or API token used",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/public/api/share/image": {
"get": {
"description": "Returns a resizable preview (large size) for the banner or favicon file of a share",
"produces": [
"image/jpeg"
],
"tags": [
"Shares"
],
"summary": "Get share image (banner or favicon) as preview",
"parameters": [
{
"type": "string",
"description": "Share hash",
"name": "hash",
"in": "query",
"required": true
},
{
"type": "boolean",
"description": "Request banner file",
"name": "banner",
"in": "query"
},
{
"type": "boolean",
"description": "Request favicon file",
"name": "favicon",
"in": "query"
}
],
"responses": {
"200": {
"description": "Preview image content (JPEG)",
"schema": {
"type": "file"
}
},
"400": {
"description": "Invalid request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Permission denied",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Asset not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/public/api/share/info": {
"get": {
"description": "Returns information about a share link based on its hash. This endpoint is publicly accessible and can be used with or without authentication.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Shares"
],
"summary": "Get share information by hash",
"parameters": [
{
"type": "string",
"description": "Hash of the share link",
"name": "hash",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "Share information",
"schema": {
"$ref": "#/definitions/share.Share"
}
},
"404": {
"description": "Share hash not found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
},
"/public/api/share/pinned-items": {
"patch": {
"description": "Patches one pinned item at a time on a share. Defaults to add; pass ?action=remove to unpin.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Share"
],
"summary": "Add or remove a pinned item on a share",
"parameters": [
{
"type": "string",
"description": "Share hash",
"name": "hash",
"in": "query",
"required": true
},
{
"type": "string",
"description": "add (default) or remove",
"name": "action",
"in": "query"
},
{
"description": "Pinned item",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/web.sharePinnedItemPatchRequest"
}
}
],
"responses": {
"204": {
"description": "No Content"
},
"400": {
"description": "Bad Request",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"403": {
"description": "Forbidden",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Not Found",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
},
"definitions": {
"ffmpeg.AccelDeviceOption": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"label": {
"type": "string"
}
}
},
"ffmpeg.EncoderBackendOption": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"label": {
"type": "string"
}
}
},
"files.Items": {
"type": "object",
"properties": {
"files": {
"type": "array",
"items": {
"type": "string"
}
},
"folders": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"indexing.SearchResult": {
"type": "object",
"properties": {
"created": {
"type": "string"
},
"hasPreview": {
"type": "boolean"
},
"modified": {
"type": "string"
},
"path": {
"type": "string"
},
"size": {
"type": "integer"
},
"source": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"iteminfo.ExtendedFileInfo": {
"type": "object",
"properties": {
"checksums": {
"description": "checksums for the file",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"content": {
"description": "text content of a file, if requested",
"type": "string"
},
"created": {
"description": "filesystem birth time, nil when unavailable",
"type": "string"
},
"files": {
"description": "files in the directory with optional metadata",
"type": "array",
"items": {
"$ref": "#/definitions/iteminfo.ExtendedItemInfo"
}
},
"folders": {
"description": "folders in the directory",
"type": "array",
"items": {
"$ref": "#/definitions/iteminfo.ItemInfo"
}
},
"hasPreview": {
"description": "whether the file has a thumbnail preview",
"type": "boolean"
},
"hash": {
"description": "hash for the file -- used for sharing",
"type": "string"
},
"hidden": {
"description": "whether the file is hidden",
"type": "boolean"
},
"isShared": {
"description": "whether the file or folder is shared",
"type": "boolean"
},
"metadata": {
"description": "media metadata for audio/video files (includes duration)",
"allOf": [
{
"$ref": "#/definitions/iteminfo.MediaMetadata"
}
]
},
"modified": {
"description": "modification time",
"type": "string"
},
"name": {
"description": "name of the file",
"type": "string"
},
"onlyOfficeId": {
"description": "id for onlyoffice files",
"type": "string"
},
"path": {
"description": "path scoped to the associated index",
"type": "string"
},
"pinnedItems": {
"description": "pinned item names in this directory listing",
"type": "array",
"items": {
"type": "string"
}
},
"size": {
"description": "length in bytes for regular files",
"type": "integer"
},
"source": {
"description": "associated index source for the file",
"type": "string"
},
"subtitles": {
"description": "subtitles for video files",
"type": "array",
"items": {
"$ref": "#/definitions/utils.SubtitleTrack"
}
},
"token": {
"description": "token for the file -- used for sharing",
"type": "string"
},
"type": {
"description": "type of the file, either \"directory\" or a file mimetype",
"type": "string"
},
"viewToken": {
"description": "opaque token for inline viewing via /resources/view or /media/stream",
"type": "string"
}
}
},
"iteminfo.ExtendedItemInfo": {
"type": "object",
"properties": {
"created": {
"description": "filesystem birth time, nil when unavailable",
"type": "string"
},
"hasPreview": {
"description": "whether the file has a thumbnail preview",
"type": "boolean"
},
"hidden": {
"description": "whether the file is hidden",
"type": "boolean"
},
"isShared": {
"description": "whether the file or folder is shared",
"type": "boolean"
},
"metadata": {
"description": "optional media metadata (audio/video only)",
"allOf": [
{
"$ref": "#/definitions/iteminfo.MediaMetadata"
}
]
},
"modified": {
"description": "modification time",
"type": "string"
},
"name": {
"description": "name of the file",
"type": "string"
},
"size": {
"description": "length in bytes for regular files",
"type": "integer"
},
"type": {
"description": "type of the file, either \"directory\" or a file mimetype",
"type": "string"
},
"viewToken": {
"description": "opaque token for inline viewing via /resources/view or /media/stream",
"type": "string"
}
}
},
"iteminfo.FileInfo": {
"type": "object",
"properties": {
"created": {
"description": "filesystem birth time, nil when unavailable",
"type": "string"
},
"files": {
"description": "files in the directory with optional metadata",
"type": "array",
"items": {
"$ref": "#/definitions/iteminfo.ExtendedItemInfo"
}
},
"folders": {
"description": "folders in the directory",
"type": "array",
"items": {
"$ref": "#/definitions/iteminfo.ItemInfo"
}
},
"hasPreview": {
"description": "whether the file has a thumbnail preview",
"type": "boolean"
},
"hidden": {
"description": "whether the file is hidden",
"type": "boolean"
},
"isShared": {
"description": "whether the file or folder is shared",
"type": "boolean"
},
"modified": {
"description": "modification time",
"type": "string"
},
"name": {
"description": "name of the file",
"type": "string"
},
"path": {
"description": "path scoped to the associated index",
"type": "string"
},
"size": {
"description": "length in bytes for regular files",
"type": "integer"
},
"type": {
"description": "type of the file, either \"directory\" or a file mimetype",
"type": "string"
}
}
},
"iteminfo.ItemInfo": {
"type": "object",
"properties": {
"created": {
"description": "filesystem birth time, nil when unavailable",
"type": "string"
},
"hasPreview": {
"description": "whether the file has a thumbnail preview",
"type": "boolean"
},
"hidden": {
"description": "whether the file is hidden",
"type": "boolean"
},
"isShared": {
"description": "whether the file or folder is shared",
"type": "boolean"
},
"modified": {
"description": "modification time",
"type": "string"
},
"name": {
"description": "name of the file",
"type": "string"
},
"size": {
"description": "length in bytes for regular files",
"type": "integer"
},
"type": {
"description": "type of the file, either \"directory\" or a file mimetype",
"type": "string"
}
}
},
"iteminfo.MediaMetadata": {
"type": "object",
"properties": {
"album": {
"description": "album name",
"type": "string"
},
"albumArt": {
"description": "album art image data (automatically base64-encoded in JSON)",
"type": "array",
"items": {
"type": "integer"
}
},
"artist": {
"description": "track artist",
"type": "string"
},
"audioCodec": {
"description": "audio codec name (e.g. aac)",
"type": "string"
},
"container": {
"description": "container/format name (e.g. mov,mp4,m4a,3gp,3g2,mj2)",
"type": "string"
},
"duration": {
"description": "duration in seconds",
"type": "integer"
},
"genre": {
"description": "music/video genre",
"type": "string"
},
"hasLyrics": {
"description": "checks if lyrics are available without parse them",
"type": "boolean"
},
"title": {
"description": "track/video title",
"type": "string"
},
"track": {
"description": "track number",
"type": "integer"
},
"videoCodec": {
"description": "video codec name (e.g. h264)",
"type": "string"
},
"year": {
"description": "release year",
"type": "integer"
}
}
},
"preview.TextPreviewResult": {
"type": "object",
"properties": {
"content": {
"description": "Content is plain text, or an HTML fragment when Format is \"html\".",
"type": "string"
},
"format": {
"description": "Format is \"text\" or \"html\". RTF is converted to HTML; everything else is text.",
"type": "string"
},
"kind": {
"description": "Kind is the renderer the frontend should use: plain, csv, markdown, html, css, code, or rtf.",
"type": "string"
},
"size": {
"description": "Size is the full size of the file in bytes.",
"type": "integer"
},
"truncated": {
"description": "Truncated is true when the file is larger than the returned content.",
"type": "boolean"
}
}
},
"settings.ActivityConfig": {
"type": "object",
"properties": {
"disabled": {
"description": "disable semantic activity audit logging (default: false)",
"type": "boolean"
},
"flushIntervalSeconds": {
"description": "buffer flush interval in seconds (default 10)",
"type": "integer"
},
"maxBufferSize": {
"description": "max in-memory buffer before immediate flush (default 10000)",
"type": "integer"
},
"retentionDays": {
"description": "purge activity rows older than this many days (default 30)",
"type": "integer"
}
}
},
"settings.Auth": {
"type": "object",
"properties": {
"adminPassword": {
"description": "deprecated: use auth.methods.password.adminPassword. secret: password-auth admin password.",
"type": "string"
},
"adminUsername": {
"description": "deprecated: use auth.methods.password.adminUsername. secret: password-auth admin username.",
"type": "string"
},
"key": {
"description": "secret: HMAC key for JWT tokens. If unset in config/env, one is generated and stored in the application database.",
"type": "string"
},
"methods": {
"$ref": "#/definitions/settings.LoginMethods"
},
"tokenExpirationHours": {
"description": "time in hours each web UI session token is valid for. Default is 2 hours.",
"type": "integer"
},
"totpSecret": {
"description": "secret: secret used to encrypt TOTP secrets",
"type": "string"
}
}
},
"settings.ConditionalRule": {
"type": "object",
"properties": {
"fileEndsWith": {
"description": "(global) exclude files that end with these suffixes. Eg. \".jpg\" or \".txt\"",
"type": "string"
},
"fileName": {
"description": "(global) exclude files that match these names. Eg. \"file.txt\" or \"test.csv\"",
"type": "string"
},
"filePath": {
"description": "(global) exclude files that match this path. Eg. \"/path/to/file.txt\" or \"/path/to/file.txt/subfile.txt\"",
"type": "string"
},
"fileStartsWith": {
"description": "(global) exclude files that start with these prefixes. Eg. \"archive-\" or \"backup-\"",
"type": "string"
},
"folderEndsWith": {
"description": "(global) exclude folders that end with these suffixes. Eg. \".thumbnails\" or \".git\"",
"type": "string"
},
"folderName": {
"description": "(global) exclude folders that match these names. Eg. \"folder\" or \"subfolder\"",
"type": "string"
},
"folderPath": {
"description": "(global) exclude folders that match this path. Eg. \"/path/to/folder\" or \"/path/to/folder/subfolder\"",
"type": "string"
},
"folderStartsWith": {
"description": "(global) exclude folders that start with these prefixes. Eg. \"archive-\" or \"backup-\"",
"type": "string"
},
"ignoreHidden": {
"description": "Excludes only hidden files and folders",
"type": "boolean"
},
"ignoreSymlinks": {
"description": "Excludes symbolic links",
"type": "boolean"
},
"ignoreZeroSizeFolders": {
"description": "Excludes only folders with 0 size",
"type": "boolean"
},
"includeRootItem": {
"description": "include only these items at root folder level",
"type": "string"
},
"neverWatchPath": {
"description": "index the folder in the first pass to get included in search, but never re-indexed.",
"type": "string"
},
"viewable": {
"description": "Enable viewing in UI but exclude from indexing",
"type": "boolean"
}
}
},
"settings.CustomTheme": {
"type": "object",
"properties": {
"css": {
"description": "The css file path and filename to use for the theme.",
"type": "string"
},
"description": {
"description": "The description of the theme to display in the UI.",
"type": "string"
}
}
},
"settings.Database": {
"type": "object",
"properties": {
"activity": {
"description": "activity audit logging configuration",
"allOf": [
{
"$ref": "#/definitions/settings.ActivityConfig"
}
]
},
"migrateFrom": {
"description": "path to legacy database file for migration (optional)",
"type": "string"
},
"path": {
"description": "path to SQLite database file",
"type": "string"
},
"quotas": {
"description": "quota counter batch flush configuration",
"allOf": [
{
"$ref": "#/definitions/settings.QuotasConfig"
}
]
}
}
},
"settings.ExternalLink": {
"type": "object",
"required": [
"text",
"url"
],
"properties": {
"text": {
"description": "the text to display on the link",
"type": "string"
},
"title": {
"description": "the title to display on hover",
"type": "string"
},
"url": {
"description": "the url to link to",
"type": "string"
}
}
},
"settings.FfmpegConvert": {
"type": "object",
"properties": {
"imagePreview": {
"description": "supported image preview formats. defaults vary by type (see individual type docs)",
"type": "object",
"additionalProperties": {
"type": "boolean"
}
},
"videoPreview": {
"description": "supported video preview formats. defaults to true for all types unless explicitly disabled.",
"type": "object",
"additionalProperties": {
"type": "boolean"
}
}
}
},
"settings.Filesystem": {
"type": "object",
"required": [
"createDirectoryPermission",
"createFilePermission"
],
"properties": {
"createDirectoryPermission": {
"description": "Unix permissions like 755, 2755, 1777 (default: 755)",
"type": "string"
},
"createFilePermission": {
"description": "Unix permissions like 644, 755, 2755 (default: 644)",
"type": "string"
}
}
},
"settings.Frontend": {
"type": "object",
"properties": {
"description": {
"description": "description that shows up in html head meta description",
"type": "string"
},
"disableDefaultLinks": {
"description": "disable default links in the sidebar",
"type": "boolean"
},
"disableNavButtons": {
"description": "disable the nav buttons in the sidebar",
"type": "boolean"
},
"disablePWAInstall": {
"description": "disable the PWA install button in the sidebar",
"type": "boolean"
},
"disableUsedPercentage": {
"description": "disable used percentage for the sources in the sidebar",
"type": "boolean"
},
"externalLinks": {
"type": "array",
"items": {
"$ref": "#/definitions/settings.ExternalLink"
}
},
"favicon": {
"description": "path to a favicon to use for the frontend",
"type": "string"
},
"loginButtonText": {
"description": "text to display on the login button",
"type": "string"
},
"loginIcon": {
"description": "path to an image file for the login page icon",
"type": "string"
},
"name": {
"description": "display name, PWA installation name is capped at 30 characters",
"type": "string"
},
"oidcLoginButtonText": {
"description": "text to display on the OIDC login button",
"type": "string"
},
"styling": {
"$ref": "#/definitions/settings.StylingConfig"
}
}
},
"settings.FullAdminTranscode": {
"type": "object",
"properties": {
"cacheMaxSizeMB": {
"description": "disk cache size limit in MB; 0 = unlimited (default: 10240)",
"type": "integer"
},
"cacheRetentionH": {
"description": "completed cache retention in hours (default: 24)",
"type": "integer"
},
"enabled": {
"description": "enable HLS transcoding for authenticated playback (default: false)",
"type": "boolean"
},
"enabledProfiles": {
"description": "derived at read time (player-menu profile ids); never stored",
"type": "array",
"items": {
"type": "string"
}
},
"encoderBackend": {
"description": "default video encoder backend for transcodes: \"\" (auto), \"cpu\", or an accel backend (nvenc, amf, qsv, vaapi, d3d12, videotoolbox)",
"type": "string"
},
"maxConcurrent": {
"description": "global concurrent transcode sessions (default: 2)",
"type": "integer"
},
"maxConcurrentPerUser": {
"description": "hard per-user concurrent transcode ceiling (default: 1)",
"type": "integer"
},
"maxResolution": {
"description": "superseded by profiles.\u003cname\u003e.maxResolution. deprecated: kept for config compatibility",
"type": "integer"
},
"profiles": {
"description": "per-profile transcode settings shown in the player menu",
"allOf": [
{
"$ref": "#/definitions/settings.TranscodeProfiles"
}
]
},
"readRate": {
"description": "VOD producer input pacing in Nx realtime (-readrate); unset or \u003c1 clamps to \u003e=1 (default: 2)",
"type": "number"
}
}
},
"settings.Http": {
"type": "object",
"properties": {
"baseURL": {
"description": "base URL for the server, the subpath that the server is running on.",
"type": "string"
},
"disableRateLimit": {
"description": "turns off built-in auth route rate limiting and failed-login lockout (default false).",
"type": "boolean"
},
"disableWebDAV": {
"description": "disable webdav support (default: false)",
"type": "boolean"
},
"externalUrl": {
"description": "used by share links if set (eg. http://mydomain.com)",
"type": "string"
},
"internalUrl": {
"description": "used by integrations if set, this is the base domain that an integration service will use to communicate with filebrowser (eg. http://localhost:8080)",
"type": "string"
},
"listen": {
"description": "address to listen on (default: 0.0.0.0)",
"type": "string"
},
"port": {
"description": "port to listen on",
"type": "integer"
},
"socket": {
"description": "socket to listen on - eg. /var/run/filebrowser.sock",
"type": "string"
},
"socketFileMode": {
"description": "octal mode for filesystem http.socket (default \"0660\"); ignored for abstract sockets",
"type": "string"
},
"socketGroup": {
"description": "optional group name or numeric gid for the socket file (filesystem sockets only)",
"type": "string"
},
"tlsCert": {
"description": "path to TLS cert",
"type": "string"
},
"tlsKey": {
"description": "path to TLS key",
"type": "string"
},
"trustProxyHeaders": {
"description": "honor X-Forwarded-* and X-Real-IP from a reverse proxy (default: false)",
"type": "boolean"
},
"trustedProxies": {
"description": "IPs/CIDRs of trusted proxies; forwarded client headers are only honored when the socket peer matches one of these (default: empty = forwarded headers ignored)",
"type": "array",
"items": {
"type": "string"
}
},
"unixSocketTrustAllLocalPeers": {
"description": "default false: set true to trust forwarded headers from any local filesystem socket peer when allowlists are empty",
"type": "boolean"
},
"unixSocketTrustedGIDs": {
"type": "array",
"items": {
"type": "integer"
}
},
"unixSocketTrustedUIDs": {
"description": "UnixSocketTrustedUIDs and UnixSocketTrustedGIDs list peer credentials (Linux SO_PEERCRED) allowed to\npresent X-Forwarded-* on a filesystem http.socket listener. When both are empty, peers are not trusted\nunless UnixSocketTrustAllLocalPeers is true (legacy; startup logs a warning). A GID allowlist trusts\nevery peer with that GID, not only a single reverse-proxy process. Abstract sockets (@name) never trust\nforwarded headers.",
"type": "array",
"items": {
"type": "integer"
}
}
}
},
"settings.IndexSqlConfig": {
"type": "object",
"properties": {
"batchSize": {
"description": "number of items to batch in a single transaction, typically 500-5000. higher = faster but could use more memory.",
"type": "integer"
},
"cacheSizeMB": {
"description": "size of the SQLite cache in MB",
"type": "integer"
},
"disableReuse": {
"description": "enable to always create a new indexing database on startup.",
"type": "boolean"
},
"fts5": {
"description": "Enable FTS5 to provide faster search queries, but 40% slower indexing and 15% larger database size",
"type": "boolean"
},
"startupIntegrityCheck": {
"description": "the method used to check the integrity of the index database on startup (default: quickCheck)",
"type": "string",
"enum": [
"quickCheck",
"probe",
"off"
]
},
"walMode": {
"description": "enable the more complex WAL journaling mode. Slower, more memory usage, but better for deployments with constant user activity.",
"type": "boolean"
}
}
},
"settings.Integrations": {
"type": "object",
"properties": {
"media": {
"$ref": "#/definitions/settings.Media"
},
"office": {
"$ref": "#/definitions/settings.OnlyOffice"
}
}
},
"settings.JwtAuthConfig": {
"type": "object",
"properties": {
"adminGroup": {
"description": "if set, users in this group will be granted admin privileges",
"type": "string"
},
"algorithm": {
"description": "JWT signing algorithm (HS256, HS384, HS512, RS256, ES256). Default is \"HS256\"",
"type": "string"
},
"createUser": {
"description": "deprecated: always true for supported authentication methods",
"type": "boolean"
},
"disableVerifyTLS": {
"description": "disable TLS verification (insecure, for testing only)",
"type": "boolean"
},
"enabled": {
"description": "whether to enable this authentication method.",
"type": "boolean"
},
"groupsClaim": {
"description": "the JSON field name to read groups from. Default is \"groups\"",
"type": "string"
},
"header": {
"description": "HTTP header to look for JWT token (e.g. X-JWT-Assertion). Default is \"X-JWT-Assertion\"",
"type": "string"
},
"logoutRedirectUrl": {
"description": "if provider logout url is provided, filebrowser will also redirect to logout url. Custom logout query params are respected.",
"type": "string"
},
"secret": {
"description": "secret: Shared secret key/bytes for verifying JWT token signatures (required, eg PUBLIC KEY, RSA PUBLIC KEY, EC PUBLIC KEY, or CERTIFICATE)",
"type": "string"
},
"userGroups": {
"description": "if set, only users in these groups are allowed to log in. Blocks all other users even with valid credentials.",
"type": "array",
"items": {
"type": "string"
}
},
"userIdentifier": {
"description": "the field value to use as the username. Default is \"preferred_username\" in oidc, \"sub\" in jwt. Other common values are \"email\" or \"username\", or \"phone\"",
"type": "string"
}
}
},
"settings.LdapConfig": {
"type": "object",
"properties": {
"adminGroup": {
"description": "if set, users in this group will be granted admin privileges",
"type": "string"
},
"baseDN": {
"description": "LDAP search base DN (e.g. dc=ldap,dc=goauthentik,dc=io)",
"type": "string"
},
"createUser": {
"description": "deprecated: always true for supported authentication methods",
"type": "boolean"
},
"disableVerifyTLS": {
"description": "disable TLS verification (insecure, for testing only)",
"type": "boolean"
},
"enabled": {
"description": "whether to enable this authentication method.",
"type": "boolean"
},
"groupsClaim": {
"description": "the JSON field name to read groups from. Default is \"groups\"",
"type": "string"
},
"logoutRedirectUrl": {
"description": "if provider logout url is provided, filebrowser will also redirect to logout url. Custom logout query params are respected.",
"type": "string"
},
"server": {
"description": "scheme://host:port of the LDAP server (e.g. ldap://localhost:389)",
"type": "string"
},
"userDN": {
"description": "Bind DN for service account (e.g. cn=admin,ou=users,dc=ldap,dc=goauthentik,dc=io)",
"type": "string"
},
"userFilter": {
"description": "Search filter for finding user by username. Default (\u0026(cn=%s)(objectClass=user)); override e.g. (email=%s) or (sAMAccountName=%s) for other directories.",
"type": "string"
},
"userGroups": {
"description": "if set, only users in these groups are allowed to log in. Blocks all other users even with valid credentials.",
"type": "array",
"items": {
"type": "string"
}
},
"userIdentifier": {
"description": "the field value to use as the username. Default is \"preferred_username\" in oidc, \"sub\" in jwt. Other common values are \"email\" or \"username\", or \"phone\"",
"type": "string"
},
"userPassword": {
"description": "secret: bind password for the LDAP service account",
"type": "string"
}
}
},
"settings.LogConfig": {
"type": "object",
"properties": {
"apiFilter": {
"description": "regex filter that excludes matching full api paths from being logged. (eg. '/user\\?id\\=self') Defaults to '^/health|^/favicon.ico|^/static|^/public/static'",
"type": "string"
},
"apiLevels": {
"description": "separated list of log levels to enable for the API. (eg. \"info|warning|error\")",
"type": "string"
},
"json": {
"description": "output in json format",
"type": "boolean"
},
"levels": {
"description": "separated list of log levels to enable. (eg. \"info|warning|error|debug\")",
"type": "string"
},
"noColors": {
"description": "disable colors in the output",
"type": "boolean"
},
"output": {
"description": "output location. (eg. \"stdout\" or \"path/to/file.log\")",
"type": "string"
},
"utc": {
"description": "use UTC time in the output instead of local time.",
"type": "boolean"
}
}
},
"settings.LoginMethods": {
"type": "object",
"properties": {
"jwt": {
"$ref": "#/definitions/settings.JwtAuthConfig"
},
"ldap": {
"$ref": "#/definitions/settings.LdapConfig"
},
"noauth": {
"description": "if set to true, overrides all other auth methods and disables authentication",
"type": "boolean"
},
"oidc": {
"$ref": "#/definitions/settings.OidcConfig"
},
"passkey": {
"$ref": "#/definitions/settings.PasskeyAuthConfig"
},
"password": {
"$ref": "#/definitions/settings.PasswordAuthConfig"
},
"proxy": {
"$ref": "#/definitions/settings.ProxyAuthConfig"
}
}
},
"settings.Media": {
"type": "object",
"properties": {
"accelDevice": {
"description": "AccelDevice selects the acceleration device: \"auto\" (default), \"software\"/\"cpu\",\n\"igpu\", \"dgpu\", a Linux DRM render node (e.g. /dev/dri/renderD128), or a GPU\nname substring. Managed via the admin media settings API.",
"type": "string"
},
"alwaysUseFfmpeg": {
"description": "deprecated: manage via the admin media settings API",
"type": "boolean"
},
"alwaysUseOnlyOffice": {
"description": "deprecated: skip folio previews for office converter; manage via the admin media settings API",
"type": "boolean"
},
"convert": {
"description": "deprecated: config for ffmpeg conversion settings. deprecated: manage via the admin media settings API",
"allOf": [
{
"$ref": "#/definitions/settings.FfmpegConvert"
}
]
},
"debug": {
"description": "deprecated: output ffmpeg stdout for media integration. deprecated: manage via the admin media settings API",
"type": "boolean"
},
"extractEmbeddedSubtitles": {
"description": "deprecated: no longer configurable; embedded subtitles are always extracted",
"type": "boolean"
},
"ffmpegPath": {
"description": "path to ffmpeg directory with ffmpeg and ffprobe (eg. /usr/local/bin)",
"type": "string"
},
"hardwareAcceleration": {
"description": "deprecated: enable hardware acceleration for ffmpeg if available. deprecated: manage via the admin media settings API",
"type": "boolean"
},
"skipHwCheck": {
"description": "SkipHwCheck skips the ffmpeg hardware codec probe entirely (software-only).\nConfig-only, not a runtime setting — advanced use, e.g. keeping the\nmulti-second probe out of CI startup.",
"type": "boolean"
},
"transcode": {
"description": "deprecated: HLS transcoding for media playback. deprecated: manage via the admin media settings API",
"allOf": [
{
"$ref": "#/definitions/settings.FullAdminTranscode"
}
]
}
}
},
"settings.OidcConfig": {
"type": "object",
"properties": {
"adminGroup": {
"description": "if set, users in this group will be granted admin privileges",
"type": "string"
},
"clientId": {
"description": "secret: client id of the OIDC application",
"type": "string"
},
"clientSecret": {
"description": "secret: client secret of the OIDC application",
"type": "string"
},
"createUser": {
"description": "deprecated: always true for supported authentication methods",
"type": "boolean"
},
"disableVerifyTLS": {
"description": "disable TLS verification (insecure, for testing only)",
"type": "boolean"
},
"enabled": {
"description": "whether to enable this authentication method.",
"type": "boolean"
},
"groupsClaim": {
"description": "the JSON field name to read groups from. Default is \"groups\"",
"type": "string"
},
"issuerUrl": {
"description": "authorization URL of the OIDC provider",
"type": "string"
},
"logoutRedirectUrl": {
"description": "if provider logout url is provided, filebrowser will also redirect to logout url. Custom logout query params are respected.",
"type": "string"
},
"scopes": {
"description": "scopes to request from the OIDC provider",
"type": "string"
},
"userGroups": {
"description": "if set, only users in these groups are allowed to log in. Blocks all other users even with valid credentials.",
"type": "array",
"items": {
"type": "string"
}
},
"userIdentifier": {
"description": "the field value to use as the username. Default is \"preferred_username\" in oidc, \"sub\" in jwt. Other common values are \"email\" or \"username\", or \"phone\"",
"type": "string"
}
}
},
"settings.OnlyOffice": {
"type": "object",
"required": [
"url"
],
"properties": {
"internalUrl": {
"description": "An optional internal address that the filebrowser server can use to communicate with the office editor, could be useful to bypass proxy.",
"type": "string"
},
"product": {
"description": "office editor behind url: onlyoffice (default) or collabora",
"type": "string",
"enum": [
"onlyoffice",
"collabora"
]
},
"secret": {
"description": "secret: OnlyOffice only, the JWT secret shared with the Document Server. Unused with collabora: editing sessions are signed with a key derived from auth.key, and Collabora trusts FileBrowser through its storage.wopi.host allow-list, where FileBrowser's host must be added.",
"type": "string"
},
"tokenExpirationHours": {
"description": "collabora only: lifetime of an editing session, in hours (default: 10)",
"type": "integer"
},
"url": {
"description": "The URL to the office editor (OnlyOffice Document Server or Collabora Online), needs to be accessible to the user.",
"type": "string"
},
"viewOnly": {
"description": "view only mode for the office editor",
"type": "boolean"
}
}
},
"settings.PasskeyAuthConfig": {
"type": "object",
"properties": {
"enabled": {
"description": "whether to enable passkey MFA",
"type": "boolean"
},
"loginButtonText": {
"description": "custom text for the passkey login button",
"type": "string"
},
"rpDisplayName": {
"description": "the Relying Party display name (defaults to frontend name)",
"type": "string"
},
"rpId": {
"description": "the Relying Party ID; if empty, auto-derived from base URL host",
"type": "string"
},
"rpOrigins": {
"description": "allowed origins; if empty, auto-derived from base URL",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"settings.PasswordAuthConfig": {
"type": "object",
"properties": {
"adminPassword": {
"description": "secret: password for admin auto-assigned admin account. If set, reset on startup.",
"type": "string"
},
"adminUsername": {
"description": "secret: admin username auto-assigned. If not set, the default is \"admin\".",
"type": "string"
},
"enabled": {
"type": "boolean"
},
"enforcedOtp": {
"description": "if set to true, TOTP is enforced for all password users users. Otherwise, users can choose to enable TOTP.",
"type": "boolean"
},
"minLength": {
"description": "minimum pasword length required, default is 5.",
"type": "integer"
},
"recaptcha": {
"description": "recaptcha config. If configured will show up the checkbox verification in the login page",
"allOf": [
{
"$ref": "#/definitions/settings.Recaptcha"
}
]
},
"signup": {
"description": "allow signups on login page if enabled -- not secure.",
"type": "boolean"
}
}
},
"settings.ProxyAuthConfig": {
"type": "object",
"properties": {
"adminGroup": {
"description": "if set, users in this group will be granted admin privileges",
"type": "string"
},
"createUser": {
"description": "deprecated: always true for supported authentication methods",
"type": "boolean"
},
"disableVerifyTLS": {
"description": "disable TLS verification (insecure, for testing only)",
"type": "boolean"
},
"enabled": {
"description": "whether to enable this authentication method.",
"type": "boolean"
},
"groupsClaim": {
"description": "the JSON field name to read groups from. Default is \"groups\"",
"type": "string"
},
"header": {
"description": "required header to use for authentication. Security Warning: FileBrowser blindly accepts the header value as username.",
"type": "string"
},
"logoutRedirectUrl": {
"description": "if provider logout url is provided, filebrowser will also redirect to logout url. Custom logout query params are respected.",
"type": "string"
},
"userGroups": {
"description": "if set, only users in these groups are allowed to log in. Blocks all other users even with valid credentials.",
"type": "array",
"items": {
"type": "string"
}
},
"userIdentifier": {
"description": "the field value to use as the username. Default is \"preferred_username\" in oidc, \"sub\" in jwt. Other common values are \"email\" or \"username\", or \"phone\"",
"type": "string"
}
}
},
"settings.QuotasConfig": {
"type": "object",
"properties": {
"flushIntervalSeconds": {
"description": "default 10",
"type": "integer"
},
"flushMaxBuffers": {
"description": "default 500",
"type": "integer"
}
}
},
"settings.Recaptcha": {
"type": "object",
"required": [
"host",
"key",
"secret"
],
"properties": {
"host": {
"description": "google recaptcha host, for example: https://www.google.com/recaptcha/api.js",
"type": "string"
},
"key": {
"description": "v2 site key",
"type": "string"
},
"secret": {
"description": "secret: v2 secret key",
"type": "string"
}
}
},
"settings.Server": {
"type": "object",
"required": [
"sources"
],
"properties": {
"cacheDir": {
"description": "path to the cache directory, used for thumbnails and other cached files",
"type": "string"
},
"cacheDirCleanup": {
"description": "whether to automatically cleanup the cache directory. Note: docker must also mount a persistent volume to persist the cache (default: false)",
"type": "boolean"
},
"cacheDirMaxSizeMB": {
"description": "maximum size in MB of the preview cache (cacheDir/diskcache). Past it, the least recently used files are deleted. 0 means no limit (default: 0)",
"type": "integer"
},
"database": {
"description": "SQLite database configuration",
"allOf": [
{
"$ref": "#/definitions/settings.Database"
}
]
},
"disablePreviewResize": {
"description": "disable resizing of previews for faster loading over slow connections",
"type": "boolean"
},
"disablePreviews": {
"description": "disable all previews thumbnails, simple icons will be used",
"type": "boolean"
},
"disableTypeDetectionByHeader": {
"description": "disable type detection by header, useful if filesystem is slow.",
"type": "boolean"
},
"disableUpdateCheck": {
"description": "disables backend update check service",
"type": "boolean"
},
"filesystem": {
"description": "filesystem settings",
"allOf": [
{
"$ref": "#/definitions/settings.Filesystem"
}
]
},
"indexSqlConfig": {
"description": "Index database SQL configuration",
"allOf": [
{
"$ref": "#/definitions/settings.IndexSqlConfig"
}
]
},
"logging": {
"type": "array",
"items": {
"$ref": "#/definitions/settings.LogConfig"
}
},
"maxArchiveSize": {
"description": "maximum archive/unarchive size in GB. 0 means no limit. (default: 20)",
"type": "integer"
},
"minSearchLength": {
"description": "minimum length of search query to begin searching (default: 3)",
"type": "integer"
},
"numImageProcessors": {
"description": "number of concurrent image processing jobs used to create previews, default is 4.",
"type": "integer"
},
"searchResultsLimit": {
"description": "maximum requested search results across all sources (default: 1000); quick search defaults to 100, advanced search to 500; size viewer remains limited to 200",
"type": "integer",
"minimum": 1
},
"sources": {
"type": "array",
"items": {
"$ref": "#/definitions/settings.Source"
}
}
}
},
"settings.Settings": {
"type": "object",
"properties": {
"auth": {
"$ref": "#/definitions/settings.Auth"
},
"frontend": {
"$ref": "#/definitions/settings.Frontend"
},
"http": {
"$ref": "#/definitions/settings.Http"
},
"integrations": {
"$ref": "#/definitions/settings.Integrations"
},
"server": {
"$ref": "#/definitions/settings.Server"
},
"shareDefaults": {
"description": "optional defaults for new shares; managed in the UI",
"allOf": [
{
"$ref": "#/definitions/settings.ShareDefaults"
}
]
},
"userDefaults": {
"description": "optional signup/CLI defaults; per-user values are managed in the UI",
"allOf": [
{
"$ref": "#/definitions/settings.UserDefaults"
}
]
}
}
},
"settings.ShareDefaults": {
"type": "object",
"properties": {
"allowCreate": {
"type": "boolean"
},
"allowDelete": {
"type": "boolean"
},
"allowModify": {
"type": "boolean"
},
"allowReplacements": {
"type": "boolean"
},
"allowedUsernames": {
"type": "array",
"items": {
"type": "string"
}
},
"banner": {
"type": "string"
},
"description": {
"type": "string"
},
"disableAnonymous": {
"type": "boolean"
},
"disableDownload": {
"type": "boolean"
},
"disableFileViewer": {
"type": "boolean"
},
"disableLoginOption": {
"type": "boolean"
},
"disableShareCard": {
"type": "boolean"
},
"disableSidebar": {
"type": "boolean"
},
"disableThumbnails": {
"type": "boolean"
},
"downloadsLimit": {
"type": "integer"
},
"enableOnlyOffice": {
"type": "boolean"
},
"enforceDarkLightMode": {
"type": "string"
},
"favicon": {
"type": "string"
},
"hideFileExt": {
"type": "string"
},
"hideNavButtons": {
"type": "boolean"
},
"keepAfterExpiration": {
"type": "boolean"
},
"maxBandwidth": {
"type": "integer"
},
"perUserDownloadLimit": {
"type": "boolean"
},
"quickDownload": {
"type": "boolean"
},
"quotaLimitBytes": {
"type": "integer"
},
"shareTheme": {
"type": "string"
},
"shareType": {
"type": "string"
},
"showHidden": {
"type": "boolean"
},
"sidebarLinks": {
"type": "array",
"items": {
"$ref": "#/definitions/users.SidebarLink"
}
},
"themeColor": {
"type": "string"
},
"title": {
"type": "string"
},
"viewMode": {
"type": "string"
}
}
},
"settings.Source": {
"type": "object",
"required": [
"path"
],
"properties": {
"config": {
"$ref": "#/definitions/settings.SourceConfig"
},
"name": {
"description": "display name",
"type": "string"
},
"path": {
"description": "file system path. (Can be relative)",
"type": "string"
}
}
},
"settings.SourceConfig": {
"type": "object",
"properties": {
"createUserDir": {
"description": "create a user directory for each user under defaultUserScope + username",
"type": "boolean"
},
"defaultEnabled": {
"description": "should be added as a default source for new users?",
"type": "boolean"
},
"defaultPermissions": {
"description": "DefaultPermissions is the template for new user scopes on this source (also synced globally via Access settings).",
"allOf": [
{
"$ref": "#/definitions/users.SourceFilePermissions"
}
]
},
"defaultUserScope": {
"description": "defaults to root of index \"/\" should match folders under path",
"type": "string"
},
"denyByDefault": {
"description": "deny access unless an \"allow\" access rule was specifically created.",
"type": "boolean"
},
"disabled": {
"description": "disable the source, this is useful so you don't need to remove it from the config file",
"type": "boolean"
},
"private": {
"description": "designate as source as private -- currently just means no sharing permitted.",
"type": "boolean"
},
"readOnly": {
"description": "read-only source, changes from the UI, webdav, and API will be disabled.",
"type": "boolean"
},
"rules": {
"description": "list of item rules to apply to specific paths",
"type": "array",
"items": {
"$ref": "#/definitions/settings.ConditionalRule"
}
},
"useLogicalSize": {
"description": "calculate sizes based on logical size instead of disk utilization (du -sh), folders will be 0 bytes when empty.",
"type": "boolean"
}
}
},
"settings.StylingConfig": {
"type": "object",
"properties": {
"customCSS": {
"description": "if a valid path to a css file is provided, it will be applied for all users. (eg. \"reduce-rounded-corners.css\")",
"type": "string"
},
"customThemes": {
"description": "A list of custom css files that each user can select to override the default styling. if \"default\" is key name then it will be the default option.",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/settings.CustomTheme"
}
},
"darkBackground": {
"description": "Specify a valid CSS color property value to use as the background color in dark mode",
"type": "string"
},
"disableEventThemes": {
"description": "disable the event based themes,",
"type": "boolean"
},
"lightBackground": {
"description": "specify a valid CSS color property value to use as the background color in light mode",
"type": "string"
}
}
},
"settings.TranscodeProfile": {
"type": "object",
"properties": {
"avgBitrateKbps": {
"description": "average video bitrate in kbps; 0 = original",
"type": "integer"
},
"enabled": {
"description": "show this preset in the player menu (default: true)",
"type": "boolean"
},
"encoderBackend": {
"description": "encoder backend override; \"\" inherits transcode.encoderBackend",
"type": "string"
},
"maxResolution": {
"description": "maximum output height in pixels; 0 = original",
"type": "integer"
}
}
},
"settings.TranscodeProfiles": {
"type": "object",
"properties": {
"balanced": {
"description": "balanced quality and size",
"allOf": [
{
"$ref": "#/definitions/settings.TranscodeProfile"
}
]
},
"datasaver": {
"description": "smallest output",
"allOf": [
{
"$ref": "#/definitions/settings.TranscodeProfile"
}
]
},
"quality": {
"description": "match the source unless capped",
"allOf": [
{
"$ref": "#/definitions/settings.TranscodeProfile"
}
]
}
}
},
"settings.UserDefaults": {
"type": "object",
"properties": {
"account": {
"$ref": "#/definitions/settings.UserDefaultsAccount"
},
"fileLoading": {
"$ref": "#/definitions/users.FileLoading"
},
"fileViewer": {
"$ref": "#/definitions/settings.UserDefaultsFileViewer"
},
"listing": {
"$ref": "#/definitions/settings.UserDefaultsListing"
},
"preview": {
"$ref": "#/definitions/settings.UserDefaultsPreview"
},
"search": {
"$ref": "#/definitions/settings.UserDefaultsSearch"
},
"sidebar": {
"$ref": "#/definitions/settings.UserDefaultsSidebar"
},
"ui": {
"$ref": "#/definitions/settings.UserDefaultsUI"
}
}
},
"settings.UserDefaultsAccount": {
"type": "object",
"properties": {
"disableSettings": {
"description": "disable the user from viewing the settings page",
"type": "boolean"
},
"disableUpdateNotifications": {
"description": "disable update notifications banner for admin users",
"type": "boolean"
},
"lockPassword": {
"description": "disable the user from changing their password",
"type": "boolean"
},
"loginMethod": {
"description": "login method to use: eg. password, proxy, oidc",
"type": "string"
},
"maxConcurrentTranscodes": {
"description": "per-user concurrent transcode sessions (default: 1)",
"type": "integer"
},
"permissions": {
"$ref": "#/definitions/settings.UserDefaultsAccountPermissions"
},
"requirePasswordChange": {
"description": "force password change at next password login",
"type": "boolean"
},
"showAdvancedProfile": {
"description": "show advanced profile settings in the user profile page",
"type": "boolean"
}
}
},
"settings.UserDefaultsAccountPermissions": {
"type": "object",
"properties": {
"admin": {
"description": "allow admin access",
"type": "boolean"
},
"api": {
"description": "allow api access",
"type": "boolean"
},
"realtime": {
"description": "allow realtime updates",
"type": "boolean"
},
"share": {
"description": "allow sharing files",
"type": "boolean"
}
}
},
"settings.UserDefaultsFileViewer": {
"type": "object",
"properties": {
"autoplayMedia": {
"description": "autoplay media files in preview",
"type": "boolean"
},
"debugOffice": {
"description": "debug onlyoffice editor",
"type": "boolean"
},
"disableOnlyOfficeExt": {
"description": "list of file extensions to disable onlyoffice editor for",
"type": "string"
},
"disableViewingExt": {
"description": "comma separated list of file extensions to disable viewing for",
"type": "string"
},
"preferEditorForMarkdown": {
"description": "prefer editor first for markdown files instead of the Markdown Viewer",
"type": "boolean"
}
}
},
"settings.UserDefaultsListing": {
"type": "object",
"properties": {
"dateFormat": {
"description": "when false, the date is relative, when true, the date is an exact timestamp",
"type": "boolean"
},
"deleteAfterArchive": {
"description": "delete source files after successful creation/extraction of archives",
"type": "boolean"
},
"deleteWithoutConfirming": {
"description": "delete files without confirmation",
"type": "boolean"
},
"gallerySize": {
"description": "0-9 - the size of the gallery thumbnails",
"type": "integer"
},
"hideFileExt": {
"description": "space separated list of file extensions to hide in UI",
"type": "string"
},
"newFileTemplate": {
"description": "list of custom filenames that will be used as template for new files",
"type": "array",
"items": {
"type": "string"
}
},
"promptRightCloseButton": {
"description": "show the prompts close button on the right",
"type": "boolean"
},
"quickDownload": {
"description": "show icon to download in one click",
"type": "boolean"
},
"showCopyPath": {
"description": "show copy path button in the context menu",
"type": "boolean"
},
"showCreationDateColumn": {
"description": "show the Creation date column in list and compact views",
"type": "boolean"
},
"showHidden": {
"description": "show hidden files in the UI. On windows this includes files starting with a dot and windows hidden files",
"type": "boolean"
},
"showSelectMultiple": {
"description": "show select multiple files on desktop",
"type": "boolean"
},
"showTypeColumn": {
"description": "show the Type column in list and compact views",
"type": "boolean"
},
"singleClick": {
"description": "open directory on single click, also enables middle click to open in new tab",
"type": "boolean"
},
"viewMode": {
"description": "view mode to use: eg. normal, list, grid, or compact",
"type": "string"
}
}
},
"settings.UserDefaultsPreview": {
"type": "object",
"properties": {
"audio": {
"description": "show thumbnails for audio files",
"type": "boolean"
},
"disablePreviewExt": {
"description": "comma separated list of file extensions to disable preview for",
"type": "string"
},
"folder": {
"description": "show thumbnails for folders that have previewable contents",
"type": "boolean"
},
"highQuality": {
"description": "high quality preview thumbnails",
"type": "boolean"
},
"image": {
"description": "show thumbnails for image files",
"type": "boolean"
},
"models": {
"description": "show live thumbnails for 3D models files",
"type": "boolean"
},
"motionVideoPreview": {
"description": "show multiple frames for videos in thumbnail preview when hovering",
"type": "boolean"
},
"office": {
"description": "show thumbnails for office files",
"type": "boolean"
},
"popup": {
"description": "show larger popup preview when hovering over thumbnail",
"type": "boolean"
},
"video": {
"description": "show thumbnails for video files",
"type": "boolean"
}
}
},
"settings.UserDefaultsSearch": {
"type": "object",
"properties": {
"disableOptions": {
"description": "disable the search options in the search bar",
"type": "boolean"
}
}
},
"settings.UserDefaultsSidebar": {
"type": "object",
"properties": {
"disableHideOnPreview": {
"description": "keep sidebar open when previewing files (was preview.disableHideSidebar)",
"type": "boolean"
},
"disableQuickToggles": {
"description": "disable the quick toggles in the sidebar",
"type": "boolean"
},
"hideFileActions": {
"description": "hide the file actions in the sidebar",
"type": "boolean"
},
"hideFiles": {
"description": "hide files in the sidebar tree navigation, when true, will show only directories",
"type": "boolean"
},
"showTools": {
"description": "show sidebar links with category \"tool\"; default is true",
"type": "boolean"
},
"sticky": {
"description": "keep sidebar open when navigating",
"type": "boolean"
}
}
},
"settings.UserDefaultsUI": {
"type": "object",
"properties": {
"customTheme": {
"description": "Name of theme to use chosen from custom themes config",
"type": "string"
},
"darkMode": {
"description": "theme preference: \"auto\" (follow system), \"dark\", or \"light\"",
"allOf": [
{
"$ref": "#/definitions/users.DarkMode"
}
]
},
"locale": {
"description": "language to use: eg. de, en, or fr",
"type": "string"
},
"themeColor": {
"description": "theme color to use: eg. #ff0000, or var(--red), var(--purple), etc",
"type": "string"
}
}
},
"share.PinnedItems": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
}
},
"share.Share": {
"type": "object",
"properties": {
"allowCreate": {
"type": "boolean"
},
"allowDelete": {
"type": "boolean"
},
"allowModify": {
"type": "boolean"
},
"allowReplacements": {
"type": "boolean"
},
"allowedUsernames": {
"type": "array",
"items": {
"type": "string"
}
},
"banner": {
"type": "string"
},
"bannerUrl": {
"type": "string"
},
"canEditShare": {
"type": "boolean"
},
"description": {
"type": "string"
},
"disableAnonymous": {
"type": "boolean"
},
"disableDownload": {
"type": "boolean"
},
"disableFileViewer": {
"type": "boolean"
},
"disableLoginOption": {
"type": "boolean"
},
"disableShareCard": {
"type": "boolean"
},
"disableSidebar": {
"type": "boolean"
},
"disableThumbnails": {
"type": "boolean"
},
"downloadURL": {
"type": "string"
},
"downloads": {
"type": "integer"
},
"downloadsLimit": {
"type": "integer"
},
"enableOnlyOffice": {
"type": "boolean"
},
"enforceDarkLightMode": {
"description": "\"dark\" or \"light\"",
"type": "string"
},
"expire": {
"type": "integer"
},
"favicon": {
"type": "string"
},
"faviconUrl": {
"type": "string"
},
"hasPassword": {
"type": "boolean"
},
"hash": {
"type": "string"
},
"hideFileExt": {
"description": "show hidden files based on extensions in shares",
"type": "string"
},
"hideNavButtons": {
"type": "boolean"
},
"keepAfterExpiration": {
"type": "boolean"
},
"maxBandwidth": {
"type": "integer"
},
"password_hash": {
"type": "string"
},
"path": {
"type": "string"
},
"perUserDownloadLimit": {
"type": "boolean"
},
"pinnedItems": {
"$ref": "#/definitions/share.PinnedItems"
},
"quickDownload": {
"type": "boolean"
},
"quotaLimitBytes": {
"type": "integer"
},
"shareTheme": {
"type": "string"
},
"shareType": {
"type": "string"
},
"shareURL": {
"type": "string"
},
"showHidden": {
"type": "boolean"
},
"sidebarLinks": {
"type": "array",
"items": {
"$ref": "#/definitions/users.SidebarLink"
}
},
"singleFileShare": {
"type": "boolean"
},
"source": {
"description": "source display name for API; backend path is Share.SourcePath",
"type": "string"
},
"sourcePath": {
"type": "string"
},
"sourceURL": {
"type": "string"
},
"themeColor": {
"type": "string"
},
"title": {
"type": "string"
},
"userDownloads": {
"type": "object",
"additionalProperties": {
"type": "integer"
}
},
"userID": {
"type": "integer"
},
"version": {
"type": "integer"
},
"viewMode": {
"description": "default view mode for anonymous users",
"type": "string"
}
}
},
"share.ShareFrontend": {
"type": "object",
"properties": {
"allowCreate": {
"type": "boolean"
},
"allowDelete": {
"type": "boolean"
},
"allowModify": {
"type": "boolean"
},
"allowReplacements": {
"type": "boolean"
},
"allowedUsernames": {
"type": "array",
"items": {
"type": "string"
}
},
"banner": {
"type": "string"
},
"bannerUrl": {
"type": "string"
},
"canEditShare": {
"type": "boolean"
},
"description": {
"type": "string"
},
"disableAnonymous": {
"type": "boolean"
},
"disableDownload": {
"type": "boolean"
},
"disableFileViewer": {
"type": "boolean"
},
"disableLoginOption": {
"type": "boolean"
},
"disableShareCard": {
"type": "boolean"
},
"disableSidebar": {
"type": "boolean"
},
"disableThumbnails": {
"type": "boolean"
},
"downloadURL": {
"type": "string"
},
"downloads": {
"type": "integer"
},
"downloadsLimit": {
"type": "integer"
},
"enableOnlyOffice": {
"type": "boolean"
},
"enforceDarkLightMode": {
"description": "\"dark\" or \"light\"",
"type": "string"
},
"expire": {
"type": "integer"
},
"expires": {
"type": "string"
},
"favicon": {
"type": "string"
},
"faviconUrl": {
"type": "string"
},
"hasPassword": {
"type": "boolean"
},
"hash": {
"type": "string"
},
"hideFileExt": {
"description": "show hidden files based on extensions in shares",
"type": "string"
},
"hideNavButtons": {
"type": "boolean"
},
"keepAfterExpiration": {
"type": "boolean"
},
"maxBandwidth": {
"type": "integer"
},
"path": {
"type": "string"
},
"pathExists": {
"type": "boolean"
},
"perUserDownloadLimit": {
"type": "boolean"
},
"quickDownload": {
"type": "boolean"
},
"quotaAvailableBytes": {
"type": "integer"
},
"quotaLimitBytes": {
"type": "integer"
},
"quotaReservedBytes": {
"type": "integer"
},
"quotaUsedBytes": {
"type": "integer"
},
"shareTheme": {
"type": "string"
},
"shareType": {
"type": "string"
},
"shareURL": {
"type": "string"
},
"showHidden": {
"type": "boolean"
},
"sidebarLinks": {
"type": "array",
"items": {
"$ref": "#/definitions/users.SidebarLink"
}
},
"singleFileShare": {
"type": "boolean"
},
"source": {
"description": "source display name for API; backend path is Share.SourcePath",
"type": "string"
},
"sourceURL": {
"type": "string"
},
"themeColor": {
"type": "string"
},
"title": {
"type": "string"
},
"unit": {
"type": "string"
},
"username": {
"type": "string"
},
"viewMode": {
"description": "default view mode for anonymous users",
"type": "string"
}
}
},
"share.SharePostBody": {
"type": "object",
"properties": {
"allowCreate": {
"type": "boolean"
},
"allowDelete": {
"type": "boolean"
},
"allowModify": {
"type": "boolean"
},
"allowReplacements": {
"type": "boolean"
},
"allowedUsernames": {
"type": "array",
"items": {
"type": "string"
}
},
"banner": {
"type": "string"
},
"bannerUrl": {
"type": "string"
},
"canEditShare": {
"type": "boolean"
},
"description": {
"type": "string"
},
"disableAnonymous": {
"type": "boolean"
},
"disableDownload": {
"type": "boolean"
},
"disableFileViewer": {
"type": "boolean"
},
"disableLoginOption": {
"type": "boolean"
},
"disableShareCard": {
"type": "boolean"
},
"disableSidebar": {
"type": "boolean"
},
"disableThumbnails": {
"type": "boolean"
},
"downloadURL": {
"type": "string"
},
"downloadsLimit": {
"type": "integer"
},
"enableOnlyOffice": {
"type": "boolean"
},
"enforceDarkLightMode": {
"description": "\"dark\" or \"light\"",
"type": "string"
},
"expires": {
"type": "string"
},
"favicon": {
"type": "string"
},
"faviconUrl": {
"type": "string"
},
"hasPassword": {
"type": "boolean"
},
"hash": {
"type": "string"
},
"hideFileExt": {
"description": "show hidden files based on extensions in shares",
"type": "string"
},
"hideNavButtons": {
"type": "boolean"
},
"keepAfterExpiration": {
"type": "boolean"
},
"maxBandwidth": {
"type": "integer"
},
"password": {
"type": "string"
},
"path": {
"type": "string"
},
"perUserDownloadLimit": {
"type": "boolean"
},
"quickDownload": {
"type": "boolean"
},
"quotaLimitBytes": {
"type": "integer"
},
"shareTheme": {
"type": "string"
},
"shareType": {
"type": "string"
},
"shareURL": {
"type": "string"
},
"showHidden": {
"type": "boolean"
},
"sidebarLinks": {
"type": "array",
"items": {
"$ref": "#/definitions/users.SidebarLink"
}
},
"singleFileShare": {
"type": "boolean"
},
"source": {
"description": "source display name for API; backend path is Share.SourcePath",
"type": "string"
},
"sourceURL": {
"type": "string"
},
"themeColor": {
"type": "string"
},
"title": {
"type": "string"
},
"unit": {
"type": "string"
},
"viewMode": {
"description": "default view mode for anonymous users",
"type": "string"
}
}
},
"users.DarkMode": {
"type": "string",
"enum": [
"auto",
"dark",
"light"
],
"x-enum-varnames": [
"DarkModeAuto",
"DarkModeDark",
"DarkModeLight"
]
},
"users.FileLoading": {
"type": "object",
"properties": {
"clearAll": {
"type": "boolean"
},
"downloadChunkSizeMb": {
"type": "integer"
},
"maxConcurrentUpload": {
"type": "integer"
},
"uploadChunkSizeMb": {
"type": "integer"
},
"uploadStallTimeoutSeconds": {
"description": "seconds without progress before an upload is paused, 0 uses the default (10)",
"type": "integer"
}
}
},
"users.FrontendScope": {
"type": "object",
"properties": {
"name": {
"description": "Bolt: filesystem path; JSON API: display name after prepForFrontend",
"type": "string"
},
"permissions": {
"$ref": "#/definitions/users.SourceFilePermissions"
},
"quota": {
"$ref": "#/definitions/users.ScopeQuota"
},
"scope": {
"description": "index path within that source",
"type": "string"
}
}
},
"users.FrontendUser": {
"type": "object",
"properties": {
"customTheme": {
"description": "Name of theme to use chosen from custom themes config.",
"type": "string"
},
"darkMode": {
"description": "theme preference: \"auto\" (follow system), \"dark\", or \"light\"",
"allOf": [
{
"$ref": "#/definitions/users.DarkMode"
}
]
},
"dateFormat": {
"description": "when false, the date is relative, when true, the date is an exact timestamp",
"type": "boolean"
},
"debugOffice": {
"description": "debug onlyoffice editor",
"type": "boolean"
},
"deleteAfterArchive": {
"description": "delete source files after successful creation/extraction of archives",
"type": "boolean"
},
"deleteWithoutConfirming": {
"description": "delete files without confirmation",
"type": "boolean"
},
"disableOfficePreviewExt": {
"description": "deprecated",
"type": "string"
},
"disableOnlyOfficeExt": {
"description": "deprecated",
"type": "string"
},
"disablePreviewExt": {
"description": "space separated list of file extensions to disable preview for",
"type": "string"
},
"disableQuickToggles": {
"description": "disable the quick toggles in the sidebar",
"type": "boolean"
},
"disableSearchOptions": {
"description": "disable the search options in the search bar",
"type": "boolean"
},
"disableSettings": {
"type": "boolean"
},
"disableUpdateNotifications": {
"description": "disable update notifications",
"type": "boolean"
},
"disableViewingExt": {
"description": "space separated list of file extensions to disable viewing for",
"type": "string"
},
"effectiveToolAccess": {
"type": "object",
"additionalProperties": {
"type": "boolean"
}
},
"fileLoading": {
"description": "upload and download settings",
"allOf": [
{
"$ref": "#/definitions/users.FileLoading"
}
]
},
"gallerySize": {
"description": "0-9 - the size of the gallery thumbnails",
"type": "integer"
},
"hideFileExt": {
"description": "space separated list of file extensions to hide in UI and API",
"type": "string"
},
"hideFilesInTree": {
"description": "hide files in the sidebar tree navigation, when true, will show only directories.",
"type": "boolean"
},
"hideSidebarFileActions": {
"description": "hide the file actions in the sidebar",
"type": "boolean"
},
"locale": {
"description": "language to use: eg. de, en, or fr",
"type": "string"
},
"lockPassword": {
"type": "boolean"
},
"loginMethod": {
"$ref": "#/definitions/users.LoginMethod"
},
"maxConcurrentTranscodes": {
"description": "MaxConcurrentTranscodes is admin-set: it stays out of NonAdminEditable so a\nuser cannot raise their own limit through a self-service PATCH.",
"type": "integer"
},
"newFileTemplate": {
"description": "list of custom filenames that will be used as template for new files",
"type": "array",
"items": {
"type": "string"
}
},
"otpEnabled": {
"type": "boolean"
},
"passkeyCredentials": {
"type": "array",
"items": {
"$ref": "#/definitions/users.WebAuthnCredential"
}
},
"password": {
"type": "string"
},
"perm": {
"$ref": "#/definitions/users.Permissions"
},
"permissions": {
"description": "global: admin, api, share, realtime",
"allOf": [
{
"$ref": "#/definitions/users.Permissions"
}
]
},
"preferEditorForMarkdown": {
"description": "prefer editor first for markdown files instead of the Markdown Viewer",
"type": "boolean"
},
"preview": {
"$ref": "#/definitions/users.Preview"
},
"promptRightCloseButton": {
"description": "show the prompts close button on the right",
"type": "boolean"
},
"quickDownload": {
"description": "show icon to download in one click",
"type": "boolean"
},
"requirePasswordChange": {
"type": "boolean"
},
"scopes": {
"type": "array",
"items": {
"$ref": "#/definitions/users.FrontendScope"
}
},
"showAdvancedProfile": {
"type": "boolean"
},
"showCopyPath": {
"description": "show copy path action in the context menu",
"type": "boolean"
},
"showCreationDateColumn": {
"description": "show the Creation date column in list and compact views",
"type": "boolean"
},
"showFirstLogin": {
"type": "boolean"
},
"showHidden": {
"description": "show hidden files in the UI. On windows this includes files starting with a dot and windows hidden files",
"type": "boolean"
},
"showSelectMultiple": {
"description": "show select multiple files on desktop",
"type": "boolean"
},
"showToolsInSidebar": {
"description": "when false, sidebar hides links with category \"tool\" (default: true)",
"type": "boolean"
},
"showTypeColumn": {
"description": "show the Type column in list and compact views",
"type": "boolean"
},
"sidebarLinks": {
"description": "customizable sidebar links",
"type": "array",
"items": {
"$ref": "#/definitions/users.SidebarLink"
}
},
"singleClick": {
"description": "open directory on single click, also enables middle click to open in new tab",
"type": "boolean"
},
"sorting": {
"$ref": "#/definitions/users.Sorting"
},
"sourcePermissions": {
"description": "deprecated: use scopes[].permissions",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/users.SourceFilePermissions"
}
},
"stickySidebar": {
"description": "keep sidebar open when navigating",
"type": "boolean"
},
"themeColor": {
"description": "theme color to use: eg. #ff0000, or var(--red), var(--purple), etc",
"type": "string"
},
"toolAccess": {
"description": "per-tool access overrides",
"allOf": [
{
"$ref": "#/definitions/users.ToolAccessMap"
}
]
},
"username": {
"type": "string"
},
"viewMode": {
"description": "view mode to use: eg. normal, list, grid, or compact",
"type": "string"
}
}
},
"users.LoginMethod": {
"type": "string",
"enum": [
"password",
"proxy",
"oidc",
"ldap",
"jwt"
],
"x-enum-varnames": [
"LoginMethodPassword",
"LoginMethodProxy",
"LoginMethodOidc",
"LoginMethodLdap",
"LoginMethodJwt"
]
},
"users.Permissions": {
"type": "object",
"properties": {
"admin": {
"description": "allow admin access",
"type": "boolean"
},
"api": {
"description": "allow api access",
"type": "boolean"
},
"create": {
"description": "deprecated: legacy user migration only; not used for API tokens",
"type": "boolean"
},
"delete": {
"description": "deprecated: legacy user migration only; not used for API tokens",
"type": "boolean"
},
"download": {
"description": "deprecated: legacy user migration only; not used for API tokens",
"type": "boolean"
},
"modify": {
"description": "deprecated: legacy user migration only; not used for API tokens",
"type": "boolean"
},
"realtime": {
"description": "allow realtime updates",
"type": "boolean"
},
"share": {
"description": "allow sharing files",
"type": "boolean"
},
"view": {
"description": "deprecated: legacy user migration only; not used for API tokens",
"type": "boolean"
}
}
},
"users.Preview": {
"type": "object",
"properties": {
"audio": {
"description": "show thumbnail preview image for audio files",
"type": "boolean"
},
"autoplayMedia": {
"description": "autoplay media files in preview",
"type": "boolean"
},
"disableHideSidebar": {
"description": "disable the hide sidebar preview for previews and editors",
"type": "boolean"
},
"folder": {
"description": "show thumbnail preview image for folder files",
"type": "boolean"
},
"image": {
"description": "show thumbnail preview image for image files",
"type": "boolean"
},
"models": {
"description": "show live thumbnails for 3D models files",
"type": "boolean"
},
"motionVideoPreview": {
"description": "show multiple frames for videos in thumbnail preview when hovering",
"type": "boolean"
},
"office": {
"description": "show thumbnail preview image for office files",
"type": "boolean"
},
"popup": {
"description": "show larger popup preview when hovering over thumbnail",
"type": "boolean"
},
"video": {
"description": "show thumbnail preview image for video files",
"type": "boolean"
}
}
},
"users.ScopeQuota": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"limitBytes": {
"description": "0 = unlimited",
"type": "integer"
},
"meter": {
"description": "index_scope (indexed size) | accounted (tracked usage)",
"type": "string"
}
}
},
"users.SidebarLink": {
"type": "object",
"properties": {
"category": {
"description": "Category type: \"source\", \"source-link\", \"share\", \"tool\", \"custom\", etc.",
"type": "string"
},
"icon": {
"description": "Material icon name",
"type": "string"
},
"name": {
"description": "Display name of the link",
"type": "string"
},
"sourceName": {
"description": "Bolt: filesystem path. JSON out: display name (after prepForFrontend).",
"type": "string"
},
"target": {
"description": "Target path/URL for the link (relative for source/share)",
"type": "string"
}
}
},
"users.Sorting": {
"type": "object",
"properties": {
"asc": {
"type": "boolean"
},
"by": {
"type": "string"
}
}
},
"users.SourceFilePermissions": {
"type": "object",
"properties": {
"configured": {
"description": "true when explicitly set (allows intentional deny-all)",
"type": "boolean"
},
"create": {
"type": "boolean"
},
"delete": {
"type": "boolean"
},
"download": {
"type": "boolean"
},
"modify": {
"type": "boolean"
},
"view": {
"type": "boolean"
}
}
},
"users.ToolAccessMap": {
"type": "object",
"additionalProperties": {
"type": "boolean"
}
},
"users.WebAuthnCredential": {
"type": "object",
"properties": {
"aaguid": {
"type": "string"
},
"attestationFormat": {
"type": "string"
},
"attestationObj": {
"type": "string"
},
"attestationType": {
"type": "string"
},
"authenticatorData": {
"type": "string"
},
"clientDataHash": {
"type": "string"
},
"clientDataJSON": {
"type": "string"
},
"cloneWarning": {
"type": "boolean"
},
"createdAt": {
"type": "integer"
},
"flags": {
"$ref": "#/definitions/users.WebAuthnCredentialFlags"
},
"id": {
"type": "string"
},
"lastUsedAt": {
"type": "integer"
},
"name": {
"type": "string"
},
"publicKey": {
"type": "string"
},
"publicKeyAlg": {
"type": "integer"
},
"signCount": {
"type": "integer"
},
"transport": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"users.WebAuthnCredentialFlags": {
"type": "object",
"properties": {
"backupEligible": {
"type": "boolean"
},
"backupState": {
"type": "boolean"
},
"userPresent": {
"type": "boolean"
},
"userVerified": {
"type": "boolean"
}
}
},
"utils.SubtitleTrack": {
"type": "object",
"properties": {
"codec": {
"description": "codec name for embedded subtitles",
"type": "string"
},
"embedded": {
"description": "true for embedded subtitles, false for external files",
"type": "boolean"
},
"index": {
"description": "stream index for embedded subtitles (nil for external)",
"type": "integer"
},
"language": {
"description": "language code",
"type": "string"
},
"name": {
"description": "filename for external, or descriptive name for embedded",
"type": "string"
},
"srclang": {
"description": "unique HTML track language tag for Plyr (may differ from Language when duplicated)",
"type": "string"
},
"title": {
"description": "title/description",
"type": "string"
}
}
},
"web.AuthTokenFrontend": {
"type": "object",
"properties": {
"Permissions": {
"$ref": "#/definitions/users.Permissions"
},
"expiresAt": {
"type": "integer"
},
"issuedAt": {
"type": "integer"
},
"minimal": {
"type": "boolean"
},
"name": {
"type": "string"
},
"token": {
"type": "string"
}
}
},
"web.BulkDeleteItem": {
"type": "object",
"properties": {
"message": {
"type": "string"
},
"path": {
"type": "string"
},
"source": {
"type": "string"
}
}
},
"web.BulkDeleteResponse": {
"type": "object",
"properties": {
"failed": {
"type": "array",
"items": {
"$ref": "#/definitions/web.BulkDeleteItem"
}
},
"succeeded": {
"type": "array",
"items": {
"$ref": "#/definitions/web.BulkDeleteItem"
}
}
}
},
"web.DirectDownloadResponse": {
"type": "object",
"properties": {
"expiresAt": {
"type": "integer"
},
"hash": {
"type": "string"
},
"token": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"web.GroupListResponse": {
"type": "object",
"properties": {
"groups": {
"type": "array",
"items": {
"type": "string"
}
},
"members": {
"description": "Members maps group name to usernames; only set when ?members=true.",
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"web.HttpResponse": {
"type": "object",
"properties": {
"message": {
"type": "string"
},
"status": {
"type": "integer"
},
"token": {
"type": "string"
}
}
},
"web.MoveCopyItem": {
"type": "object",
"properties": {
"fromPath": {
"type": "string"
},
"fromSource": {
"type": "string"
},
"message": {
"type": "string"
},
"toPath": {
"type": "string"
},
"toSource": {
"type": "string"
}
}
},
"web.MoveCopyRequest": {
"type": "object",
"properties": {
"action": {
"description": "\"copy\", \"move\", or \"rename\"",
"type": "string"
},
"items": {
"type": "array",
"items": {
"$ref": "#/definitions/web.MoveCopyItem"
}
},
"overwrite": {
"description": "Overwrite if destination exists",
"type": "boolean"
},
"rename": {
"description": "Auto-rename if destination exists",
"type": "boolean"
}
}
},
"web.MoveCopyResponse": {
"type": "object",
"properties": {
"failed": {
"type": "array",
"items": {
"$ref": "#/definitions/web.MoveCopyItem"
}
},
"succeeded": {
"type": "array",
"items": {
"$ref": "#/definitions/web.MoveCopyItem"
}
}
}
},
"web.archiveCreateRequest": {
"type": "object",
"properties": {
"compression": {
"description": "Gzip compression level for tar.gz only, 0-9; 0 = default; ignored for zip (optional). Example: 6",
"type": "integer"
},
"deleteAfter": {
"description": "If true, delete the source files/directories after successful archive creation (optional; requires delete permission). Example: true",
"type": "boolean"
},
"destination": {
"description": "Full path where the archive will be created; use .zip or .tar.gz extension (required). Example: \"/backups/my-archive.zip\"",
"type": "string"
},
"format": {
"description": "Archive format: \"zip\" or \"tar.gz\" (optional; inferred from destination if omitted). Example: \"zip\"",
"type": "string"
},
"fromSource": {
"description": "Source name where the paths to archive live (required). Example: \"default\"",
"type": "string"
},
"paths": {
"description": "Paths of files or directories to add; directories are walked; access-denied entries skipped (required). Example: [\"/docs/file.txt\", \"/photos\"]",
"type": "array",
"items": {
"type": "string"
}
},
"toSource": {
"description": "Source name where the archive file will be written (optional; default: fromSource). Example: \"backups\"",
"type": "string"
}
}
},
"web.changeRequiredPasswordBody": {
"type": "object",
"properties": {
"password": {
"type": "string"
},
"passwordConfirm": {
"type": "string"
}
}
},
"web.duplicateGroup": {
"type": "object",
"properties": {
"count": {
"type": "integer"
},
"files": {
"type": "array",
"items": {
"$ref": "#/definitions/indexing.SearchResult"
}
},
"size": {
"type": "integer"
}
}
},
"web.duplicateResponse": {
"type": "object",
"properties": {
"groups": {
"type": "array",
"items": {
"$ref": "#/definitions/web.duplicateGroup"
}
},
"incomplete": {
"type": "boolean"
},
"reason": {
"type": "string"
}
}
},
"web.fileWatchMetadata": {
"type": "object",
"properties": {
"modified": {
"description": "Modification time",
"type": "string"
},
"name": {
"description": "File name",
"type": "string"
},
"size": {
"description": "File size in bytes (for directories, total size of all files)",
"type": "integer"
},
"type": {
"description": "MIME type",
"type": "string"
}
}
},
"web.fileWatchResponse": {
"type": "object",
"properties": {
"contents": {
"description": "Text content for text files",
"type": "string"
},
"isText": {
"description": "Whether the file is a text file",
"type": "boolean"
},
"metadata": {
"description": "File metadata for non-text files",
"allOf": [
{
"$ref": "#/definitions/web.fileWatchMetadata"
}
]
}
}
},
"web.mediaSettingsResponse": {
"type": "object",
"properties": {
"accelDevice": {
"description": "acceleration device: \"auto\", \"software\"/\"cpu\", \"igpu\", \"dgpu\", a DRM render node, or a GPU name substring",
"type": "string"
},
"accelDeviceOptions": {
"type": "array",
"items": {
"$ref": "#/definitions/ffmpeg.AccelDeviceOption"
}
},
"alwaysUseFfmpeg": {
"description": "skip the go-media fast path and use ffmpeg for all probe, metadata, subtitle, and thumbnail work (default: false)",
"type": "boolean"
},
"alwaysUseOnlyOffice": {
"description": "skip folio document previews and use the office converter when configured (default: false)",
"type": "boolean"
},
"convert": {
"description": "config for ffmpeg conversion settings",
"allOf": [
{
"$ref": "#/definitions/settings.FfmpegConvert"
}
]
},
"debug": {
"description": "output ffmpeg stdout for media integration -- careful can produces lots of output!",
"type": "boolean"
},
"encoderBackendOptions": {
"type": "array",
"items": {
"$ref": "#/definitions/ffmpeg.EncoderBackendOption"
}
},
"hardwareAcceleration": {
"description": "enable hardware acceleration for ffmpeg if available",
"type": "boolean"
},
"imagePreview": {
"description": "image formats that can be converted",
"type": "object",
"additionalProperties": {
"type": "boolean"
}
},
"lockMessage": {
"type": "string"
},
"lockedFromConfigPaths": {
"type": "array",
"items": {
"type": "string"
}
},
"transcode": {
"description": "HLS transcoding for media playback",
"allOf": [
{
"$ref": "#/definitions/settings.FullAdminTranscode"
}
]
}
}
},
"web.pinnedItemPatchRequest": {
"type": "object",
"required": [
"name",
"path",
"source"
],
"properties": {
"name": {
"description": "item basename within path",
"type": "string"
},
"path": {
"description": "scope-relative parent directory",
"type": "string"
},
"source": {
"type": "string"
}
}
},
"web.sharePinnedItemPatchRequest": {
"type": "object",
"required": [
"name",
"path"
],
"properties": {
"name": {
"type": "string"
},
"path": {
"type": "string"
}
}
},
"web.unarchiveRequest": {
"type": "object",
"properties": {
"deleteAfter": {
"description": "If true, delete the archive file after successful extraction (optional; default: false). Example: true",
"type": "boolean"
},
"destination": {
"description": "Directory path on toSource to extract into (required). Example: \"/projects/imported\"",
"type": "string"
},
"filenameEncoding": {
"description": "Fallback ZIP filename encoding; explicit Unicode metadata takes precedence.",
"type": "string"
},
"fromSource": {
"description": "Source name where the archive file lives (required). Example: \"default\"",
"type": "string"
},
"path": {
"description": "Path to the archive file on fromSource; .zip, .tar.gz, or .tgz (required). Example: \"/downloads/data.zip\"",
"type": "string"
},
"preview": {
"description": "Inspect ZIP names without writing or deleting files.",
"type": "boolean"
},
"toSource": {
"description": "Source name where contents will be extracted (optional; default: fromSource). Example: \"restored\"",
"type": "string"
}
}
},
"web.viewTokenResponse": {
"type": "object",
"properties": {
"expiresAt": {
"type": "integer"
},
"viewToken": {
"type": "string"
}
}
},
"web.wopiSessionResponse": {
"type": "object",
"properties": {
"accessToken": {
"description": "posted as access_token",
"type": "string"
},
"accessTokenTtl": {
"description": "posted as access_token_ttl: absolute expiry, epoch milliseconds",
"type": "integer"
},
"actionUrl": {
"description": "editor URL the iframe form posts to",
"type": "string"
},
"mode": {
"description": "\"edit\" or \"view\"",
"type": "string"
},
"product": {
"description": "collabora, onlyoffice or generic",
"type": "string"
}
}
}
}
}`
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "",
Host: "",
BasePath: "",
Schemes: []string{},
Title: "",
Description: "",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
LeftDelim: "{{",
RightDelim: "}}",
}