---
title: "Rotate Deployment Key"
method: POST
path: "/compute/script/{id}/deploymentKey/rotate"
tags: ["Edge Script"]
---

# Rotate Deployment Key

`POST /compute/script/{id}/deploymentKey/rotate`

## Path parameters

- `id` integer, required

## Response `204`

The deployment key has been successfully rotated

## Other responses

- `401` — The request authorization failed
- `404` — The Edge Script with the requested ID does not exist
- `500` — Internal Server Error

---

[API](https://skmtc.net/bunny/apis/bunny-net-cdn-logging.md) · [All operations](https://skmtc.net/bunny/apis/bunny-net-cdn-logging/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bunny/bunny-net-cdn-logging/versions/9e622620664b/schema)
