Logo
Akamai APIs API Documentation

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.

 

Body PARAM

Key Datatype Required Description 
accountSwitchKey
string (Optional) For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status Created

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



Curl
curl -X POST 'https://host/edgeworkers/v1/ids/:edgeWorkerId/versions?accountSwitchKey=' -H 'Content-Type: application/gzip' -H 'Accept: application/json'

ENDPOINTS