---
title: "openre.stream-write-request@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/openre.stream-write-request"
updated: null
---

# openre.stream-write-request@1 · OpenVibe.Services

HTML: [openre.stream-write-request@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/openre.stream-write-request)

# OpenreStreamWriteRequest `openre.stream-write-request@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: openre
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/openre/stream-write-request.v1.json`](/docs/contracts/openre.stream-write-request.json)

openre.stream-write-request@1: the body of POST /api/v1/streams and PATCH /api/v1/streams/:id on OpenRestream (openre.stream.write). A person creates streams for themselves; a service names the owner with X-OV-Subject (or owner\_subject, which must then match). title is cleaned and cut to 140 characters (Untitled stream when blank), description to 2000; protocols is a non-empty subset of rtmp, whip, webrtc, jsmpeg; external\_refs (create only, at most 10, each bound to one stream) link it to another service's record, e.g. { service: live, type: managed\_stream, id: 12 }; state (update only) is active or disabled. Fields left out keep their value. DELETE /api/v1/streams/:id (archive; refused while live) takes no body. Refusals are 400 openre.invalid\_\* and 409 openre.ref\_taken / openre.stream\_live.

## Fields

This schema has no named fields.

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: create

~~~~
{
  "title": "Main cam",
  "protocols": [
    "rtmp",
    "whip"
  ],
  "recording_mode": "vod",
  "external_refs": [
    {
      "service": "live",
      "type": "managed_stream",
      "id": "12"
    }
  ]
}
~~~~

Rejected: no-protocols

~~~~
{
  "protocols": []
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('openre.stream-write-request@1', value);   // { valid, errors: [{ path, message }] }
~~~~
