mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Add ability to schedule video publication
This commit is contained in:
@@ -264,6 +264,7 @@
|
||||
<a href="#definition-GetMeVideoRating"> GetMeVideoRating </a>
|
||||
<a href="#definition-RegisterUser"> RegisterUser </a>
|
||||
<a href="#definition-VideoChannelInput"> VideoChannelInput </a>
|
||||
<a href="#definition-ScheduleVideoUpdate"> ScheduleVideoUpdate </a>
|
||||
</nav>
|
||||
</div>
|
||||
<div id="docs" class="row collapse expanded drawer" data-drawer>
|
||||
@@ -3530,6 +3531,19 @@
|
||||
<p>Video privacy</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="prop-row prop-group">
|
||||
<div class="prop-name">
|
||||
<div class="prop-title">scheduleUpdate</div>
|
||||
<div class="prop-subtitle"> in formData </div>
|
||||
<div class="prop-subtitle">
|
||||
<span class="json-property-type">[object Object]</span>
|
||||
<span class="json-property-range" title="Value limits"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="prop-value">
|
||||
<p class="no-description">(no description)</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="doc-examples"></div>
|
||||
@@ -4161,12 +4175,7 @@
|
||||
<span class="json-property-required"></span>
|
||||
<div class="prop-subtitle"> in formData </div>
|
||||
<div class="prop-subtitle">
|
||||
<span class="json-property-type">string</span>
|
||||
<span class="json-property-enum" title="Possible values">
|
||||
<span class="json-property-enum-item">Public</span>,
|
||||
<span class="json-property-enum-item">Unlisted</span>,
|
||||
<span class="json-property-enum-item">Private</span>
|
||||
</span>
|
||||
<span class="json-property-type">[object Object]</span>
|
||||
<span class="json-property-range" title="Value limits"></span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -4174,6 +4183,19 @@
|
||||
<p>Video privacy</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="prop-row prop-group">
|
||||
<div class="prop-name">
|
||||
<div class="prop-title">scheduleUpdate</div>
|
||||
<div class="prop-subtitle"> in formData </div>
|
||||
<div class="prop-subtitle">
|
||||
<span class="json-property-type">[object Object]</span>
|
||||
<span class="json-property-range" title="Value limits"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="prop-value">
|
||||
<p class="no-description">(no description)</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="doc-examples"></div>
|
||||
@@ -8339,6 +8361,52 @@
|
||||
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"string"</span>,
|
||||
<span class="hljs-attr">"description"</span>: <span class="hljs-string">"string"</span>
|
||||
}
|
||||
</code></pre>
|
||||
<!-- </div> -->
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="definition-ScheduleVideoUpdate" class="definition panel" data-traverse-target="definition-ScheduleVideoUpdate">
|
||||
<h2 class="panel-title">
|
||||
<a name="/definitions/ScheduleVideoUpdate"></a>ScheduleVideoUpdate:
|
||||
<!-- <span class="json-property-type"><span class="json-property-type">object</span>
|
||||
<span class="json-property-range" title="Value limits"></span>
|
||||
|
||||
|
||||
</span> -->
|
||||
</h2>
|
||||
<div class="doc-row">
|
||||
<div class="doc-copy">
|
||||
<section class="json-schema-properties">
|
||||
<dl>
|
||||
<dt data-property-name="updateAt" class="has-description">
|
||||
<span class="json-property-name">updateAt:</span>
|
||||
<span class="json-property-type">dateTime</span>
|
||||
<span class="json-property-range" title="Value limits"></span>
|
||||
</dt>
|
||||
<dd>
|
||||
<p>When to update the video</p>
|
||||
</dd>
|
||||
<dt data-property-name="privacy">
|
||||
<span class="json-property-name">privacy:</span>
|
||||
<span class="json-property-type">
|
||||
<span class="">
|
||||
<a class="json-schema-ref" href="#/definitions/VideoPrivacy">VideoPrivacy</a>
|
||||
</span>
|
||||
</span>
|
||||
<span class="json-property-range" title="Value limits"></span>
|
||||
</dt>
|
||||
</dl>
|
||||
</section>
|
||||
</div>
|
||||
<div class="doc-examples">
|
||||
<section>
|
||||
<h5>Example</h5>
|
||||
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
|
||||
<span class="hljs-attr">"updateAt"</span>: <span class="hljs-string">"dateTime"</span>,
|
||||
<span class="hljs-attr">"privacy"</span>: <span class="hljs-string">"string"</span>
|
||||
}
|
||||
</code></pre>
|
||||
<!-- </div> -->
|
||||
</section>
|
||||
|
||||
@@ -711,6 +711,12 @@ paths:
|
||||
type: string
|
||||
enum: [Public, Unlisted]
|
||||
description: 'Video privacy'
|
||||
- name: scheduleUpdate
|
||||
in: formData
|
||||
required: false
|
||||
description: 'Schedule an update at a specific datetime'
|
||||
type:
|
||||
$ref: '#/definitions/ScheduleVideoUpdate'
|
||||
responses:
|
||||
'200':
|
||||
description: successful operation
|
||||
@@ -864,9 +870,15 @@ paths:
|
||||
- name: privacy
|
||||
in: formData
|
||||
required: true
|
||||
type: string
|
||||
enum: [Public, Unlisted, Private]
|
||||
type:
|
||||
$ref: '#/definitions/VideoPrivacy'
|
||||
description: 'Video privacy'
|
||||
- name: scheduleUpdate
|
||||
in: formData
|
||||
required: false
|
||||
description: 'Schedule an update at a specific datetime'
|
||||
type:
|
||||
$ref: '#/definitions/ScheduleVideoUpdate'
|
||||
responses:
|
||||
'200':
|
||||
description: successful operation
|
||||
@@ -1709,3 +1721,12 @@ definitions:
|
||||
type: string
|
||||
description:
|
||||
type: string
|
||||
ScheduleVideoUpdate:
|
||||
properties:
|
||||
updateAt:
|
||||
type: dateTime
|
||||
description: 'When to update the video'
|
||||
required: true
|
||||
privacy:
|
||||
$ref: '#/definitions/VideoPrivacy'
|
||||
required: false
|
||||
Reference in New Issue
Block a user