Create a new version

POST https://{{host}}/edgeworkers/v1/ids/:edgeWorkerId/versions

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.

Request Params

KeyDatatypeRequiredDescription
accountSwitchKeystring(Optional) 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.

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{"accountId":"A-CCT9012","checksum":"de9f2c7fd25e1b3afad3e85a0bd17d9b100db4b3","createdBy":"jsmith","createdTime":"2020-07-05T18:17:46Z","edgeWorkerId":42,"version":"5"}