diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-15 16:52:15 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-15 18:20:56 +0200 |
commit | bbe0f0645ca958d33a3f409b15166609733b663f (patch) | |
tree | edcd5d702c73cda74a2177c4bdc08c616334337d /support/doc/api/openapi.yaml | |
parent | 2baea0c77cc765f7cbca9c9a2f4272268892a35c (diff) | |
download | PeerTube-bbe0f0645ca958d33a3f409b15166609733b663f.tar.gz PeerTube-bbe0f0645ca958d33a3f409b15166609733b663f.tar.zst PeerTube-bbe0f0645ca958d33a3f409b15166609733b663f.zip |
Add ability to schedule video publication
Diffstat (limited to 'support/doc/api/openapi.yaml')
-rw-r--r-- | support/doc/api/openapi.yaml | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index be40af570..4b7bc23b4 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml | |||
@@ -711,6 +711,12 @@ paths: | |||
711 | type: string | 711 | type: string |
712 | enum: [Public, Unlisted] | 712 | enum: [Public, Unlisted] |
713 | description: 'Video privacy' | 713 | description: 'Video privacy' |
714 | - name: scheduleUpdate | ||
715 | in: formData | ||
716 | required: false | ||
717 | description: 'Schedule an update at a specific datetime' | ||
718 | type: | ||
719 | $ref: '#/definitions/ScheduleVideoUpdate' | ||
714 | responses: | 720 | responses: |
715 | '200': | 721 | '200': |
716 | description: successful operation | 722 | description: successful operation |
@@ -864,9 +870,15 @@ paths: | |||
864 | - name: privacy | 870 | - name: privacy |
865 | in: formData | 871 | in: formData |
866 | required: true | 872 | required: true |
867 | type: string | 873 | type: |
868 | enum: [Public, Unlisted, Private] | 874 | $ref: '#/definitions/VideoPrivacy' |
869 | description: 'Video privacy' | 875 | description: 'Video privacy' |
876 | - name: scheduleUpdate | ||
877 | in: formData | ||
878 | required: false | ||
879 | description: 'Schedule an update at a specific datetime' | ||
880 | type: | ||
881 | $ref: '#/definitions/ScheduleVideoUpdate' | ||
870 | responses: | 882 | responses: |
871 | '200': | 883 | '200': |
872 | description: successful operation | 884 | description: successful operation |
@@ -1709,3 +1721,12 @@ definitions: | |||
1709 | type: string | 1721 | type: string |
1710 | description: | 1722 | description: |
1711 | type: string | 1723 | type: string |
1724 | ScheduleVideoUpdate: | ||
1725 | properties: | ||
1726 | updateAt: | ||
1727 | type: dateTime | ||
1728 | description: 'When to update the video' | ||
1729 | required: true | ||
1730 | privacy: | ||
1731 | $ref: '#/definitions/VideoPrivacy' | ||
1732 | required: false \ No newline at end of file | ||