Creates a copy of an existing stream with a new title.
Requires the stream:copy:write or streams.write permission.
Request
POST /stream/copy
Headers
| Header | Value |
|---|---|
Authorization | Bearer <token> |
Content-Type | application/json |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
stream | integer | Yes | The ID of the stream to copy. |
name | string | No | The title for the new stream. Defaults to "{original title} (Kopie)" when omitted. |
Example Request
{
"stream": 5,
"name": "Summer Sale – Copy"
}Response
Returns the newly created stream object.
Example Response
{
"id": 42,
"title": "Summer Sale – Copy",
"datatype": "product",
"query": {
"and": [],
"or": []
}
}
