VideoPlaylistManageResult video.playlist-manage-result@1
Generated at from
openvibe-contracts v0.177.0 and
openvibe-sdk v0.44.0.
- Version
- 1.0.0
- Owner
- media-hub
- Visibility
- public
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/video/playlist-manage-result.v1.json
video.playlist-manage-result@1: { playlist } after a create (201, Location) or an edit, { item } after an add (201), { items } after a reorder; a delete answers 204 with no body.
Fields
This schema has no named fields.
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: added
{
"item": {
"kind": "vod",
"id": 5717,
"position": 0,
"added_at": "2026-10-12T19:01:00.000Z"
}
}Valid: created
{
"playlist": {
"id": "vpl_01K7A1B2C3D4E5F6G7H8J9K0MN",
"title": "Best of the week",
"description": "",
"visibility": "public",
"item_count": 2,
"created_at": "2026-10-12T19:00:00.000Z",
"updated_at": "2026-10-12T19:05:00.000Z"
}
}Valid: reordered
{
"items": [
{
"kind": "vod",
"id": 5717,
"position": 0,
"added_at": "2026-10-12T19:01:00.000Z"
}
]
}Rejected: bad-item
{
"item": {
"kind": "vod",
"id": 0,
"position": 0,
"added_at": "2026-10-12T19:01:00.000Z"
}
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('video.playlist-manage-result@1', value); // { valid, errors: [{ path, message }] }