Create a new logging override

Override the default JavaScript logging level for a specific EdgeWorker ID. By default, the log level for JavaScript logs is ERROR. For more information, go to the Use DataStream 2 to deliver JavaScript logs tutorial.

Path Params
integer
required
≥ 1

Unique identifier for an EdgeWorker.

Query Params
string

For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.

Body Params
integer
≥ 1

Specifies the Data Stream 2 stream to use to deliver the logs.

string
enum
required

Describes the selected log level.

Allowed:
string
enum
required

The network on which the logging override is activated, either STAGING or PRODUCTION.

Allowed:
string
length ≥ 1

Currently unused. Reserved for future use to control the schema version for different outputs.

date-time

ISO 8601 timestamp indicating when the logging override settings should expire.

Response

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json