description:Retrieves all downloads recorded by the server and their status.
security:
@ -678,46 +652,12 @@ paths:
content:
application/json:
schema:
type:object
properties:
download:
type:object
properties:
uid:
type:string
downloading:
type:boolean
complete:
type:boolean
url:
type:string
type:
type:string
percent_complete:
type:string
is_playlist:
type:boolean
timestamp_start:
type:number
timestamp_end:
type:number
fileNames:
type:array
items:
type:string
$ref:'#/components/schemas/GetDownloadResponse'
requestBody:
content:
application/json:
schema:
type:object
properties:
session_id:
type:string
download_id:
type:string
required:
- session_id
- download_id
$ref:'#/components/schemas/GetDownloadRequest'
description:''
description:"Gets a single download using its download_id and session_id. session_id is the device fingerprint. If none was provided at the time of download, then set session_id is 'undeclared'."
security:
@ -809,6 +749,10 @@ paths:
responses:
'200':
description:OK
content:
application/json:
schema:
$ref:'#/components/schemas/SuccessObject'
requestBody:
content:
application/json:
@ -816,8 +760,12 @@ paths:
type:object
properties:
change_object:
required:
- uid
type:object
properties:
uid:
type:string
name:
type:string
role:
@ -839,10 +787,7 @@ paths:
content:
application/json:
schema:
type:object
properties:
success:
type:boolean
$ref:'#/components/schemas/SuccessObject'
description:Deletes a user by its uid.
requestBody:
content:
@ -879,14 +824,14 @@ paths:
permissions:
type:array
items:
type:string
$ref:'#/components/schemas/UserPermission'
user:
type:object
properties:
permissions:
type:array
items:
type:string
$ref:'#/components/schemas/UserPermission'
description:Gets the available roles and their permissions
security:
- Auth query parameter:[]
@ -902,10 +847,7 @@ paths:
content:
application/json:
schema:
type:object
properties:
success:
type:boolean
$ref:'#/components/schemas/SuccessObject'
description:"Changes the permissions for a user. Available values for each permission are: `default`, `yes`, and `no`. `default` will use the user's role's default permission."