BlogPostUpdateRequest blog.post-update-request@1

Generated at from openvibe-contracts v0.53.0 and openvibe-sdk v0.11.0.

Version
1.0.0
Owner
blog
Visibility
first-party
Status
active
Compatibility
backward
Schema
https://openvibe.network/contracts/blog/post-update-request.v1.json

blog.post-update-request@1: bodies of blog.post.update on OpenVibe.Blog (editors of the post). PATCH /api/v1/posts/:id: any post fields; a change to title, body or summary makes a new revision and needs expected_revision (the revision you edited; 428 revision.expected_required without it); citations sent replace the revision's, otherwise they carry forward. POST /api/v1/posts/:id/revert: { to_revision, expected_revision }. POST /api/v1/posts/:id/attachments: { media_id (med_…), role?: cover | inline | gallery, alt?, caption?, position? }. DELETE /api/v1/posts/:id/attachments/:aid takes 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: attach
{
  "media_id": "med_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "role": "cover",
  "alt": "OBS scene list"
}
Valid: edit
{
  "expected_revision": 2,
  "body": "One encoder, three platforms, zero dropped frames."
}
Rejected: bad-values
{
  "visibility": "friends",
  "media_id": "https://example.com/x.png"
}

Validate

const contracts = require('openvibe-contracts');
contracts.validate('blog.post-update-request@1', value);   // { valid, errors: [{ path, message }] }