Logo
Akamai APIs API Documentation

Deactivate an EdgeWorker version

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

Deactivate an existing EdgeWorker version 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-CCT9012", "createdBy": "jsmith", "createdTime": "2020-04-05T18:17:46Z", "deactivationId": 3, "edgeWorkerId": 42, "lastModifiedTime": "2020-04-05T18:17:46Z", "network": "PRODUCTION", "note": "EdgeWorker ID 42 is no longer used in production.", "status": "PRESUBMIT", "version": "5" }



Curl
curl -X POST 'https://host/edgeworkers/v1/ids/:edgeWorkerId/deactivations?accountSwitchKey=' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"network":"PRODUCTION","note":"EdgeWorker ID 42 is no longer used in production.","version":"2"}'

ENDPOINTS