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

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

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

# OpenreOutputWriteRequest `openre.output-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/output-write-request.v1.json`](/docs/contracts/openre.output-write-request.json)

openre.output-write-request@1: the body of POST /api/v1/streams/:id/destinations (platform and server\_url required) and PATCH /api/v1/destinations/:id (fields left out keep their value) on OpenRestream (openre.output.write). server\_url must pass the destination URL rules (rtmp, rtmps or srt, public hosts); stream\_key (at most 512 characters, no spaces) and srt\_passphrase (10 to 79 characters) are sealed and never read back — \_\_keep\_\_ leaves them unchanged, empty clears them. Numbers out of range become null: srt\_latency\_ms 20-8000, custom\_video\_bitrate 500-50000, custom\_audio\_bitrate 32-512, custom\_fps 15-120; an unknown custom\_encoder\_preset becomes null. DELETE /api/v1/destinations/:id and POST /api/v1/destinations/:id/test|start|stop take 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: srt

~~~~
{
  "platform": "custom",
  "name": "Backup",
  "server_url": "srt://backup.example.net:9000",
  "srt_passphrase": "correct-horse-battery",
  "srt_latency_ms": 200,
  "auto_start": false
}
~~~~

Rejected: unknown-platform

~~~~
{
  "platform": "facebook",
  "server_url": "rtmps://live-api-s.facebook.com:443/rtmp/"
}
~~~~

## Validate

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