+ PeerTube
+ API Reference
+
-
PeerTube
- API Reference
-
Federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.
@@ -278,8 +295,45 @@
+
+ Authentication
+
+
+
+
+ OAuth2
+
+
+
+ In the header:
+ Authorization: Bearer mytoken
+
+
+
+
+
+
+
+
https://peertube.example.com/api/v1/users/token
+
+
+
+
+
Accounts
-
+
+
+
+
+
+
+
+
+ GET
+ /accounts/{name}/videos
+
+
+
+
+
+
+
+
name
+
+
in path
+
+ string
+
+
+
+
+
+
+
+
+
+
+
+
+
Response Content-Types:
+ application/json
+
+
+ Response Example
+ (200 OK)
+
+ {
+ "id": "number",
+ "uuid": "string",
+ "createdAt": "string",
+ "publishedAt": "string",
+ "updatedAt": "string",
+ "category": {
+ "id": "number",
+ "label": "string"
+ },
+ "licence": {
+ "id": "number",
+ "label": "string"
+ },
+ "language": {
+ "id": "string",
+ "label": "string"
+ },
+ "privacy": "string",
+ "description": "string",
+ "duration": "number",
+ "isLocal": "boolean",
+ "name": "string",
+ "thumbnailPath": "string",
+ "previewPath": "string",
+ "embedPath": "string",
+ "views": "number",
+ "likes": "number",
+ "dislikes": "number",
+ "nsfw": "boolean",
+ "account": {
+ "name": "string",
+ "displayName": "string",
+ "url": "string",
+ "host": "string",
+ "avatar": {
+ "path": "string",
+ "createdAt": "string",
+ "updatedAt": "string"
+ }
+ }
+}
@@ -464,6 +607,17 @@
successful operation
+
@@ -579,12 +733,12 @@
- Job
-
+
Feeds
+
-
ServerFollowing
-
+
Job
+
- DELETE
- /server/following/{host}
+ GET
+ /jobs
@@ -744,23 +843,170 @@
-
host
+
state
+
in path
+
+ string
+
+
-
The host to unfollow
+
The id of the account
+
+
+
+
+
start
+
in query
+
+ number
+
+
+
+
+
+
+
+
count
+
in query
+
+ number
+
+
+
+
+
+
+
+
sort
+
in query
+
+ number
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
Response Content-Types:
+ application/json
+
+
+ Response Example
+ (200 OK)
+
+ [
+ {
+ "id": "number",
+ "state": "string",
+ "category": "string",
+ "handlerName": "string",
+ "handlerInputData": "string",
+ "createdAt": "string",
+ "updatedAt": "string"
+ }
+]
+
+
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
+
+
ServerFollowing
+
+
+
+
+
+
+
+
+ DELETE
+ /server/following/{host}
+
+
+
+
+
+
+
+
host
+
+
in path
+
+ string
+
+
+
+
@@ -785,6 +1031,28 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
@@ -807,60 +1075,42 @@
start
+
in query
+
+ number
+
+
-
-
stop
+
in query
+
+ number
+
+
-
-
sort
+
in query
+
+ number
+
+
-
-
@@ -882,6 +1132,17 @@
successful operation
+
@@ -960,60 +1221,42 @@
start
+
in query
+
+ number
+
+
-
-
stop
+
in query
+
+ number
+
+
-
-
sort
+
in query
+
+ number
+
+
-
-
@@ -1035,6 +1278,17 @@
successful operation
+
@@ -1119,7 +1373,8 @@
- undefined
+
+
undefined
@@ -1194,6 +1449,28 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
User
@@ -1223,7 +1500,8 @@
- undefined
+
+
User to create
@@ -1283,6 +1561,28 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
@@ -1305,60 +1605,42 @@
start
+
in query
+
+ number
+
+
-
-
stop
+
in query
+
+ number
+
+
-
-
sort
+
in query
+
+ number
+
+
-
-
@@ -1380,6 +1662,17 @@
successful operation
+
@@ -1422,41 +1715,10 @@
"displayName": "string",
"description": "string",
"isLocal": "boolean",
- "owner": {
- "name": "string",
+ "ownerAccount": {
+ "id": "number",
"uuid": "string"
- },
- "videos": [
- {
- "id": "number",
- "uuid": "string",
- "createdAt": "string",
- "updatedAt": "string",
- "category": {
- "id": "number",
- "label": "string"
- },
- "licence": {
- "id": "number",
- "label": "string"
- },
- "language": {
- "id": "number",
- "label": "string"
- },
- "description": "string",
- "duration": "number",
- "isLocal": "boolean",
- "name": "string",
- "thumbnailPath": "string",
- "previewPath": "string",
- "embedPath": "string",
- "views": "number",
- "likes": "number",
- "dislikes": "number",
- "nsfw": "boolean"
- }
- ]
+ }
}
]
}
@@ -1466,6 +1728,28 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
@@ -1489,22 +1773,16 @@
id
+
in path
+
+ string
+
+
-
-
@@ -1528,6 +1806,28 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
@@ -1551,22 +1851,16 @@
id
+
in path
+
+ string
+
+
-
-
@@ -1629,41 +1923,10 @@
"displayName": "string",
"description": "string",
"isLocal": "boolean",
- "owner": {
- "name": "string",
+ "ownerAccount": {
+ "id": "number",
"uuid": "string"
- },
- "videos": [
- {
- "id": "number",
- "uuid": "string",
- "createdAt": "string",
- "updatedAt": "string",
- "category": {
- "id": "number",
- "label": "string"
- },
- "licence": {
- "id": "number",
- "label": "string"
- },
- "language": {
- "id": "number",
- "label": "string"
- },
- "description": "string",
- "duration": "number",
- "isLocal": "boolean",
- "name": "string",
- "thumbnailPath": "string",
- "previewPath": "string",
- "embedPath": "string",
- "views": "number",
- "likes": "number",
- "dislikes": "number",
- "nsfw": "boolean"
- }
- ]
+ }
}
]
}
@@ -1672,6 +1935,28 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
@@ -1700,7 +1985,8 @@
- undefined
+
+
undefined
@@ -1710,22 +1996,16 @@
id
+
in path
+
+ string
+
+
-
-
@@ -1764,6 +2044,28 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
@@ -1801,6 +2103,17 @@
successful operation
+
@@ -1843,41 +2156,10 @@
"displayName": "string",
"description": "string",
"isLocal": "boolean",
- "owner": {
- "name": "string",
+ "ownerAccount": {
+ "id": "number",
"uuid": "string"
- },
- "videos": [
- {
- "id": "number",
- "uuid": "string",
- "createdAt": "string",
- "updatedAt": "string",
- "category": {
- "id": "number",
- "label": "string"
- },
- "licence": {
- "id": "number",
- "label": "string"
- },
- "language": {
- "id": "number",
- "label": "string"
- },
- "description": "string",
- "duration": "number",
- "isLocal": "boolean",
- "name": "string",
- "thumbnailPath": "string",
- "previewPath": "string",
- "embedPath": "string",
- "views": "number",
- "likes": "number",
- "dislikes": "number",
- "nsfw": "boolean"
- }
- ]
+ }
}
]
}
@@ -1887,6 +2169,28 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
@@ -1915,7 +2219,8 @@
- undefined
+
+
undefined
@@ -1957,6 +2262,28 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
@@ -1990,6 +2317,13 @@
successful operation
+
@@ -2006,6 +2340,28 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
@@ -2029,22 +2385,16 @@
videoId
+
in path
+
+ string
+
+
-
-
@@ -2085,6 +2435,28 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
@@ -2107,60 +2479,42 @@
start
+
in query
+
+ number
+
+
-
-
stop
+
in query
+
+ number
+
+
-
-
sort
+
in query
+
+ number
+
+
-
-
@@ -2182,6 +2536,17 @@
successful operation
+
@@ -2197,6 +2562,7 @@
"id": "number",
"uuid": "string",
"createdAt": "string",
+ "publishedAt": "string",
"updatedAt": "string",
"category": {
"id": "number",
@@ -2207,9 +2573,10 @@
"label": "string"
},
"language": {
- "id": "number",
+ "id": "string",
"label": "string"
},
+ "privacy": "string",
"description": "string",
"duration": "number",
"isLocal": "boolean",
@@ -2220,7 +2587,18 @@
"views": "number",
"likes": "number",
"dislikes": "number",
- "nsfw": "boolean"
+ "nsfw": "boolean",
+ "account": {
+ "name": "string",
+ "displayName": "string",
+ "url": "string",
+ "host": "string",
+ "avatar": {
+ "path": "string",
+ "createdAt": "string",
+ "updatedAt": "string"
+ }
+ }
}
]
@@ -2228,6 +2606,28 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
@@ -2256,7 +2656,8 @@
- undefined
+
+
undefined
@@ -2319,22 +2720,16 @@
avatarfile
+
in formData
+
+ file
+
+
-
-
@@ -2376,6 +2771,28 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
Video
@@ -2399,60 +2816,42 @@
start
+
in query
+
+ number
+
+
-
-
stop
+
in query
+
+ number
+
+
-
-
sort
+
in query
+
+ number
+
+
-
-
@@ -2474,6 +2873,17 @@
successful operation
+
@@ -2489,6 +2899,7 @@
"id":
"number",
"uuid":
"string",
"createdAt":
"string",
+
"publishedAt":
"string",
"updatedAt":
"string",
"category": {
"id":
"number",
@@ -2499,9 +2910,10 @@
"label":
"string"
},
"language": {
-
"id":
"number",
+
"id":
"string",
"label":
"string"
},
+
"privacy":
"string",
"description":
"string",
"duration":
"number",
"isLocal":
"boolean",
@@ -2512,7 +2924,18 @@
"views":
"number",
"likes":
"number",
"dislikes":
"number",
-
"nsfw":
"boolean"
+
"nsfw":
"boolean",
+
"account": {
+
"name":
"string",
+
"displayName":
"string",
+
"url":
"string",
+
"host":
"string",
+
"avatar": {
+
"path":
"string",
+
"createdAt":
"string",
+
"updatedAt":
"string"
+ }
+ }
}
]
@@ -2553,6 +2976,13 @@
successful operation
+
+
type
+
+ string[]
+
+
+
@@ -2604,6 +3034,13 @@
successful operation
+
+
type
+
+ string[]
+
+
+
@@ -2655,6 +3092,13 @@
successful operation
+
+
type
+
+ string[]
+
+
+
@@ -2706,6 +3150,13 @@
successful operation
+
+
type
+
+ string[]
+
+
+
@@ -2746,60 +3197,42 @@
start
+
in query
+
+ number
+
+
-
-
stop
+
in query
+
+ number
+
+
-
-
sort
+
in query
+
+ number
+
+
-
-
@@ -2821,6 +3254,17 @@
successful operation
+
@@ -2836,6 +3280,7 @@
"id":
"number",
"uuid":
"string",
"createdAt":
"string",
+
"publishedAt":
"string",
"updatedAt":
"string",
"category": {
"id":
"number",
@@ -2846,9 +3291,10 @@
"label":
"string"
},
"language": {
-
"id":
"number",
+
"id":
"string",
"label":
"string"
},
+
"privacy":
"string",
"description":
"string",
"duration":
"number",
"isLocal":
"boolean",
@@ -2859,7 +3305,18 @@
"views":
"number",
"likes":
"number",
"dislikes":
"number",
-
"nsfw":
"boolean"
+
"nsfw":
"boolean",
+
"account": {
+
"name":
"string",
+
"displayName":
"string",
+
"url":
"string",
+
"host":
"string",
+
"avatar": {
+
"path":
"string",
+
"createdAt":
"string",
+
"updatedAt":
"string"
+ }
+ }
}
]
@@ -2890,21 +3347,175 @@
id
+
in path
+
+ string
+
+
-
The video id
+
The video id
-
-
type
+
+
+
thumbnailfile
+
in formData
+
+ file
+
+
+
-
string
-
+
Video thumbnail file
-
-
in
-
path
+
+
+
previewfile
+
in formData
+
+ file
+
+
+
+
+
+
+
+
category
+
in formData
+
+ number
+
+
+
+
+
+
+
+
licence
+
in formData
+
+ number
+
+
+
+
+
+
+
+
language
+
in formData
+
+ string
+
+
+
+
+
+
+
+
description
+
in formData
+
+ string
+
+
+
+
+
+
+
+
support
+
in formData
+
+ string
+
+
+
+
+
Text describing how to support the video uploader
+
+
+
+
+
nsfw
+
in formData
+
+ boolean
+
+
+
+
+
Whether or not this video contains sensitive content
+
+
+
+
+
name
+
in formData
+
+ string
+
+
+
+
+
+
+
+
tags
+
in formData
+
+ string[]
+
+
+
+
+
+
+
+
commentsEnabled
+
in formData
+
+ boolean
+
+
+
+
+
Enable or disable comments for this video
+
+
+
+
+
privacy
+
in formData
+
+ string
+
+ Public,
+ Unlisted
+
+
+
+
+
@@ -2941,6 +3552,7 @@
"id":
"number",
"uuid":
"string",
"createdAt":
"string",
+
"publishedAt":
"string",
"updatedAt":
"string",
"category": {
"id":
"number",
@@ -2951,9 +3563,10 @@
"label":
"string"
},
"language": {
-
"id":
"number",
+
"id":
"string",
"label":
"string"
},
+
"privacy":
"string",
"description":
"string",
"duration":
"number",
"isLocal":
"boolean",
@@ -2964,13 +3577,46 @@
"views":
"number",
"likes":
"number",
"dislikes":
"number",
-
"nsfw":
"boolean"
+
"nsfw":
"boolean",
+
"account": {
+
"name":
"string",
+
"displayName":
"string",
+
"url":
"string",
+
"host":
"string",
+
"avatar": {
+
"path":
"string",
+
"createdAt":
"string",
+
"updatedAt":
"string"
+ }
+ }
}
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
@@ -2994,22 +3640,16 @@
id
+
in path
+
+ string
+
+
-
-
@@ -3045,6 +3685,7 @@
"id": "number",
"uuid": "string",
"createdAt": "string",
+ "publishedAt": "string",
"updatedAt": "string",
"category": {
"id": "number",
@@ -3055,9 +3696,10 @@
"label": "string"
},
"language": {
- "id": "number",
+ "id": "string",
"label": "string"
},
+ "privacy": "string",
"description": "string",
"duration": "number",
"isLocal": "boolean",
@@ -3068,7 +3710,18 @@
"views": "number",
"likes": "number",
"dislikes": "number",
- "nsfw": "boolean"
+ "nsfw": "boolean",
+ "account": {
+ "name": "string",
+ "displayName": "string",
+ "url": "string",
+ "host": "string",
+ "avatar": {
+ "path": "string",
+ "createdAt": "string",
+ "updatedAt": "string"
+ }
+ }
}
@@ -3098,22 +3751,16 @@
id
+
in path
+
+ string
+
+
-
-
@@ -3137,6 +3784,28 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
@@ -3160,22 +3829,16 @@
id
+
in path
+
+ string
+
+
-
-
@@ -3193,6 +3856,13 @@
successful operation
+
@@ -3232,22 +3902,16 @@
id
+
in path
+
+ string
+
+
-
-
@@ -3293,47 +3957,222 @@
videofile
+
+
in formData
+
+ file
+
+
-
The file to upload.
+
Video file
-
-
type
+
+
+
thumbnailfile
+
+
in formData
+
+ file
+
+
+
-
file
-
+
Video thumbnail file
-
-
in
-
formData
+
+
+
previewfile
+
+
in formData
+
+ file
+
+
+
+
-
-
-
-
-
-
-
-
200 OK
-
-
successful operation
+
Video category
-
-
-
-
Response Content-Types:
+
+
+
licence
+
in formData
+
+ number
+
+
+
+
+
+
+
+
language
+
in formData
+
+ string
+
+
+
+
+
+
+
+
description
+
in formData
+
+ string
+
+
+
+
+
+
+
+
support
+
in formData
+
+ string
+
+
+
+
+
Text describing how to support the video uploader
+
+
+
+
+
channelId
+
+
in formData
+
+ number
+
+
+
+
+
Channel id that will contain this video
+
+
+
+
+
nsfw
+
+
in formData
+
+ boolean
+
+
+
+
+
Whether or not this video contains sensitive content
+
+
+
+
+
name
+
+
in formData
+
+ string
+
+
+
+
+
+
+
+
tags
+
in formData
+
+ string[]
+
+
+
+
+
+
+
+
commentsEnabled
+
in formData
+
+ boolean
+
+
+
+
+
Enable or disable comments for this video
+
+
+
+
+
privacy
+
+
in formData
+
+ string
+
+ Public,
+ Unlisted,
+ Private
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Response Content-Types:
application/json
@@ -3341,14 +4180,38 @@
(200 OK)
{
- "id": "number",
- "uuid": "string"
+ "video": {
+ "id": "number",
+ "uuid": "string"
+ }
}
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
VideoAbuse
@@ -3372,60 +4235,42 @@
start
+
in query
+
+ number
+
+
-
-
stop
+
in query
+
+ number
+
+
-
-
sort
+
in query
+
+ number
+
+
-
-
@@ -3447,6 +4292,17 @@
successful operation
+
@@ -3478,6 +4334,12 @@
"updatedAt": "string"
}
},
+ "video": {
+ "id": "number",
+ "name": "string",
+ "uuid": "string",
+ "url": "string"
+ },
"createdAt": "string"
}
]
@@ -3486,6 +4348,28 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
@@ -3509,22 +4393,16 @@
id
+
in path
+
+ string
+
+
-
-
@@ -3548,6 +4426,28 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
VideoBlacklist
@@ -3572,22 +4472,16 @@
videoId
+
in path
+
+ string
+
+
-
-
@@ -3611,6 +4505,28 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
@@ -3634,22 +4550,16 @@
videoId
+
in path
+
+ string
+
+
-
-
@@ -3673,6 +4583,28 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
@@ -3695,60 +4627,42 @@
start
+
in query
+
+ number
+
+
-
-
stop
+
in query
+
+ number
+
+
-
-
sort
+
in query
+
+ number
+
+
-
-
@@ -3770,6 +4684,17 @@
successful operation
+
@@ -3801,9 +4726,31 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
VideoChannel
-
@@ -3914,41 +4854,10 @@
"displayName": "string",
"description": "string",
"isLocal": "boolean",
- "owner": {
- "name": "string",
+ "ownerAccount": {
+ "id": "number",
"uuid": "string"
- },
- "videos": [
- {
- "id": "number",
- "uuid": "string",
- "createdAt": "string",
- "updatedAt": "string",
- "category": {
- "id": "number",
- "label": "string"
- },
- "licence": {
- "id": "number",
- "label": "string"
- },
- "language": {
- "id": "number",
- "label": "string"
- },
- "description": "string",
- "duration": "number",
- "isLocal": "boolean",
- "name": "string",
- "thumbnailPath": "string",
- "previewPath": "string",
- "embedPath": "string",
- "views": "number",
- "likes": "number",
- "dislikes": "number",
- "nsfw": "boolean"
- }
- ]
+ }
}
]
@@ -3957,7 +4866,7 @@
-
+
- undefined
+
+
undefined
@@ -4024,8 +4934,30 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
-
+
@@ -4098,41 +5024,10 @@
"displayName":
"string",
"description":
"string",
"isLocal":
"boolean",
-
"owner": {
-
"name":
"string",
+
"ownerAccount": {
+
"id":
"number",
"uuid":
"string"
- },
-
"videos": [
- {
-
"id":
"number",
-
"uuid":
"string",
-
"createdAt":
"string",
-
"updatedAt":
"string",
-
"category": {
-
"id":
"number",
-
"label":
"string"
- },
-
"licence": {
-
"id":
"number",
-
"label":
"string"
- },
-
"language": {
-
"id":
"number",
-
"label":
"string"
- },
-
"description":
"string",
-
"duration":
"number",
-
"isLocal":
"boolean",
-
"name":
"string",
-
"thumbnailPath":
"string",
-
"previewPath":
"string",
-
"embedPath":
"string",
-
"views":
"number",
-
"likes":
"number",
-
"dislikes":
"number",
-
"nsfw":
"boolean"
- }
- ]
+ }
}
@@ -4140,7 +5035,7 @@
-
+
- undefined
+
+
undefined
@@ -4177,22 +5073,16 @@
id
+
in path
+
+ string
+
+
-
-
-
type
-
-
string
-
+
The video channel id
-
@@ -4229,8 +5119,30 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
-
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
-
+
@@ -4366,41 +5411,10 @@
"displayName":
"string",
"description":
"string",
"isLocal":
"boolean",
-
"owner": {
-
"name":
"string",
+
"ownerAccount": {
+
"id":
"number",
"uuid":
"string"
- },
-
"videos": [
- {
-
"id":
"number",
-
"uuid":
"string",
-
"createdAt":
"string",
-
"updatedAt":
"string",
-
"category": {
-
"id":
"number",
-
"label":
"string"
- },
-
"licence": {
-
"id":
"number",
-
"label":
"string"
- },
-
"language": {
-
"id":
"number",
-
"label":
"string"
- },
-
"description":
"string",
-
"duration":
"number",
-
"isLocal":
"boolean",
-
"name":
"string",
-
"thumbnailPath":
"string",
-
"previewPath":
"string",
-
"embedPath":
"string",
-
"views":
"number",
-
"likes":
"number",
-
"dislikes":
"number",
-
"nsfw":
"boolean"
- }
- ]
+ }
}
]
@@ -4432,79 +5446,55 @@
videoId
+
in path
+
+ string
+
+
-
-
start
+
in query
+
+ number
+
+
-
-
stop
+
in query
+
+ number
+
+
-
-
sort
+
in query
+
+ number
+
+
-
-
@@ -4597,22 +5587,16 @@
videoId
+
in path
+
+ string
+
+
-
-
@@ -4679,6 +5663,28 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
-
-
threadId
+
in path
+
+ string
+
+
-
-
@@ -4890,42 +5884,30 @@
videoId
+
in path
+
+ string
+
+
-
-
commentId
+
in path
+
+ string
+
+
-
-
@@ -4992,6 +5974,28 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
-
-
commentId
+
in path
+
+ string
+
+
-
-
@@ -5074,6 +6066,28 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
VideoRate
@@ -5098,22 +6112,16 @@
id
+
in path
+
+ string
+
+
-
-
@@ -5137,11 +6145,33 @@
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+ OAuth2
+ |
+ |
+
+
+
+
+
+
Schema Definitions
-
+
- VideoConstant:
+ VideoConstantNumber:
+
+
+
+
+
+ -
+ id:
+ string
+
+
+ -
+ label:
+ string
+
+
+
+
+
+
+
+ Example
+ {
+ "id": "string",
+ "label": "string"
+}
+
+
+
+
+
+
+
+
+ VideoPrivacy: string
+
+
+
+
+ string
+
+ Public,
+ Unlisted,
+ Private
+
+
+
+
+
Video:
@@ -5206,6 +6300,11 @@
string
+
+ publishedAt:
+ string
+
+
updatedAt:
string
@@ -5215,7 +6314,7 @@
category:
- VideoConstant
+ VideoConstantNumber
@@ -5224,7 +6323,7 @@
licence:
- VideoConstant
+ VideoConstantNumber
@@ -5233,7 +6332,16 @@
language:
- VideoConstant
+ VideoConstantString
+
+
+
+
+
+ privacy:
+
+
+ VideoPrivacy
@@ -5298,6 +6406,41 @@
object
+
+
+
+ -
+ name:
+ string
+
+
+ -
+ displayName:
+ string
+
+
+ -
+ url:
+ string
+
+
+ -
+ host:
+ string
+
+
+ -
+ avatar:
+
+
+ Avatar
+
+
+
+
+
+
+
@@ -5308,6 +6451,7 @@
"id":
"number",
"uuid":
"string",
"createdAt":
"string",
+
"publishedAt":
"string",
"updatedAt":
"string",
"category": {
"id":
"number",
@@ -5318,9 +6462,10 @@
"label":
"string"
},
"language": {
-
"id":
"number",
+
"id":
"string",
"label":
"string"
},
+
"privacy":
"string",
"description":
"string",
"duration":
"number",
"isLocal":
"boolean",
@@ -5331,7 +6476,18 @@
"views":
"number",
"likes":
"number",
"dislikes":
"number",
-
"nsfw":
"boolean"
+
"nsfw":
"boolean",
+
"account": {
+
"name":
"string",
+
"displayName":
"string",
+
"url":
"string",
+
"host":
"string",
+
"avatar": {
+
"path":
"string",
+
"createdAt":
"string",
+
"updatedAt":
"string"
+ }
+ }
}
@@ -5376,6 +6532,32 @@
object
+
+
+
+ -
+ id:
+ number
+
+
+ -
+ name:
+ string
+
+
+ -
+ uuid:
+ string
+
+
+ -
+ url:
+ string
+
+
+
+
+
createdAt:
string
@@ -5407,6 +6589,12 @@
"updatedAt": "string"
}
},
+ "video": {
+ "id": "number",
+ "name": "string",
+ "uuid": "string",
+ "url": "string"
+ },
"createdAt": "string"
}
@@ -5542,19 +6730,26 @@
boolean
-
- owner:
+
+ ownerAccount:
object
-
- videos:
-
-
- Video
-
-
-
+
+
+
+ -
+ id:
+ number
+
+
+ -
+ uuid:
+ string
+
+
+
+
@@ -5566,41 +6761,10 @@
"displayName": "string",
"description": "string",
"isLocal": "boolean",
- "owner": {
- "name": "string",
+ "ownerAccount": {
+ "id": "number",
"uuid": "string"
- },
- "videos": [
- {
- "id": "number",
- "uuid": "string",
- "createdAt": "string",
- "updatedAt": "string",
- "category": {
- "id": "number",
- "label": "string"
- },
- "licence": {
- "id": "number",
- "label": "string"
- },
- "language": {
- "id": "number",
- "label": "string"
- },
- "description": "string",
- "duration": "number",
- "isLocal": "boolean",
- "name": "string",
- "thumbnailPath": "string",
- "previewPath": "string",
- "embedPath": "string",
- "views": "number",
- "likes": "number",
- "dislikes": "number",
- "nsfw": "boolean"
- }
- ]
+ }
}
@@ -5746,6 +6910,17 @@
+
+
+
@@ -6126,6 +7301,17 @@
+
+
+
@@ -6163,41 +7349,10 @@
"displayName": "string",
"description": "string",
"isLocal": "boolean",
- "owner": {
- "name": "string",
+ "ownerAccount": {
+ "id": "number",
"uuid": "string"
- },
- "videos": [
- {
- "id": "number",
- "uuid": "string",
- "createdAt": "string",
- "updatedAt": "string",
- "category": {
- "id": "number",
- "label": "string"
- },
- "licence": {
- "id": "number",
- "label": "string"
- },
- "language": {
- "id": "number",
- "label": "string"
- },
- "description": "string",
- "duration": "number",
- "isLocal": "boolean",
- "name": "string",
- "thumbnailPath": "string",
- "previewPath": "string",
- "embedPath": "string",
- "views": "number",
- "likes": "number",
- "dislikes": "number",
- "nsfw": "boolean"
- }
- ]
+ }
}
]
}
@@ -6225,21 +7380,124 @@
object
+
+
+
+ -
+ allowed:
+ boolean
+
+
+
+
+
transcoding:
object
+
+
+
+ -
+ enabledResolutions:
+ number[]
+
+
+ -
+
+
+
+
+
avatar:
object
+
+
+
+ -
+ file:
+ object
+
+
+ -
+
+
+ -
+ size:
+ object
+
+
+ -
+
+
+ -
+ max:
+ number
+
+
+
+
+
+
+
+
+ -
+ extensions:
+ string[]
+
+
+ -
+
+
+
+
+
video:
object
+
+
+
+ -
+ file:
+ object
+
+
+ -
+
+
+ -
+ extensions:
+ string[]
+
+
+ -
+
+
+
+
+
+
+
+
@@ -6521,15 +7779,26 @@
- -
- id:
- number
+
-
+ video:
+ object
- -
- uuid:
- string
-
+
-
+
+
+ -
+ id:
+ number
+
+
+ -
+ uuid:
+ string
+
+
+
+
@@ -6538,8 +7807,10 @@
Example
{
- "id": "number",
- "uuid": "string"
+ "video": {
+ "id": "number",
+ "uuid": "string"
+ }
}
@@ -6574,6 +7845,17 @@
+
+
+