Updates the latest version of an EdgeWorkers stream. When you edit a stream, you create a new configuration version with a higher number. Note that only active streams collect and send logs to their destinations. You need to set the activate parameter to true while patching active streams, and optionally for inactive streams if you want to activate them upon request. See Version management and Activate a stream.

Path Params
integer
required

Uniquely identifies the stream.

Query Params
boolean
Defaults to false

Activates the stream at the time of the request, false by default. When you edit or patch an active stream, you need to set this to true.

Body Params
string
required

Identifies the contract that has access to the product.

datasetFields
array of objects
required

Identifies data set fields that you want to receive in logs. For the STRUCTURED format, the order of the identifiers defines how these fields' values appear in the log lines. See Data set parameters for the complete list of the fields you can choose.

Dataset fields*
deliveryConfiguration
object
required

Configures log lines, log file format, names of the log files sent to a destination, and delivery frequency for these files.

required

The destination configuration in the stream to send logs. See Destinations for details and features available for each destination.

notificationEmails
array of strings
length ≥ 0

Email addresses where you want to send notifications about the stream's activations and deactivations. By omitting this or specifying an empty array, you can activate or deactivate the stream without notifications.

Notification emails
string
required
length ≤ 1000

The stream's name.

Response

Response body
object
string
required

Identifies the contract the stream belongs to.

string
required

The username who created the stream.

date-time
required

An ISO 8601 timestamp marking when the stream was created.

deliveryConfiguration
object
required

The configuration of log filenames, and their delivery frequency to the destination.

string

A delimiter that separates data set fields in the log lines, either SPACE or TAB. Set this only for the STRUCTURED log file format.

SPACE TAB

string
required

The format in which you want to receive log files. You can choose the STRUCTURED or JSON format for your stream.

STRUCTURED JSON

frequency
object
required

The frequency to collect logs from each uploader and send them to a destination.

string
length ≤ 200
Defaults to ak

The log filename prefix that you want to send to an object-based destination, up to 200 characters. This data supports Dynamic time variables. If unspecified, it defaults to ak.

string
length ≤ 10
Defaults to ds

The log filename suffix that you want to send to an object-based destination, up to 10 characters. This data supports Dynamic time variables. If unspecified, it defaults to ds.

required

Details the destination's configuration in the stream to send logs.

integer
required

Identifies the group with access to the product, which you created the stream configuration for. You can write this data only once, when you initially create the stream.

integer
required

Identifies the stream's latest configuration version.

string
required

The username who modified the stream.

date-time
required

An ISO 8601 timestamp marking when the stream was modified.

notificationEmails
array of strings
length ≥ 0

Email addresses where the system sends notifications about activations and deactivations of the stream.

notificationEmails
integer
required

Identifies the stream.

string
required

The stream's name.

string
required

Indicates if the stream is INACTIVE, ACTIVATING, ACTIVATED, DEACTIVATING, or DEACTIVATED.

INACTIVE ACTIVATING ACTIVATED DEACTIVATING DEACTIVATED

integer
required

Identifies the stream's configuration version.

Language
URL