Add originallyPublishedAt to PUT videos + change HTTP response to 204
authorFrank Sträter <fstrater@beeldengeluid.nl>
Wed, 14 Aug 2019 08:53:31 +0000 (10:53 +0200)
committerChocobozzz <chocobozzz@cpy.re>
Wed, 14 Aug 2019 09:10:17 +0000 (11:10 +0200)
support/doc/api/openapi.yaml

index 570a377f8d2816e89f837c82ac8cd192b2e9d20c..78159f89c47f74fe7c471d4fdfd7bf96f671e1aa 100644 (file)
@@ -530,7 +530,7 @@ paths:
         - My User
       responses:
         '204':
-          description: Successful operation
+          description: successful operation
       requestBody:
         content:
           application/json:
@@ -818,12 +818,8 @@ paths:
       parameters:
         - $ref: '#/components/parameters/idOrUUID'
       responses:
-        '200':
+        '204':
           description: successful operation
-          content:
-            application/json:
-              schema:
-                $ref: '#/components/schemas/Video'
       requestBody:
         content:
           multipart/form-data:
@@ -872,6 +868,10 @@ paths:
                 commentsEnabled:
                   description: Enable or disable comments for this video
                   type: string
+                originallyPublishedAt:
+                  description: Date when the content was originally published
+                  type: string
+                  format: date-time
                 scheduleUpdate:
                   $ref: '#/components/schemas/VideoScheduledUpdate'
     get: