Skip to navigation

Create a new version

Create a new version of an EdgeWorker. In order to run this operation you need to build an EdgeWorkers code bundle and save it in GZIP format. You need to provide the GZIP binary file in the request body, with a Content-Type of application/gzip.

Path parameters

edgeWorkerIdstringRequired

Query parameters

accountSwitchKeystringOptional

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.

Request

This endpoint expects binary data of type application/gzip.

Response

Provides details for an EdgeWorker version.
accountIdstring>=1 character
Identifier for the account where the EdgeWorker was created.
checksumstring>=1 character

A SHA-256 hash digest of the tarball.

createdBystring>=1 character
Username of the person who created the EdgeWorker version.
createdTimedatetime
ISO 8601 timestamp indicating when the EdgeWorker version was created.
edgeWorkerIdinteger>=1
Unique identifier of the EdgeWorker.
versionstring>=1 character
Unique identifier of the EdgeWorker version.
sequenceNumberstringOptional>=1 character
An incrementing number indicating the upload order of the EdgeWorker versions.