Logo
Akamai APIs API Documentation

Roll back to the previous active EdgeWorker version

POST https://{{host}}/edgeworkers/v1/ids/:edgeWorkerId/activations/rollback

Reactivate the EdgeWorker version that was previously active on the Akamai network, either staging or production.

 

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-CCT3456", "activationId": 3, "createdBy": "jsmith", "createdTime": "2020-04-05T18:17:46Z", "edgeWorkerId": 42, "lastModifiedTime": "2020-04-05T18:17:46Z", "network": "PRODUCTION", "note": "Version 2 fixes an issue detected in production.", "status": "PRESUBMIT", "version": "2" }



Curl
curl -X POST 'https://host/edgeworkers/v1/ids/:edgeWorkerId/activations/rollback?accountSwitchKey=' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"network":"STAGING","note":"An issue was detected in the latest active version."}'

ENDPOINTS