---
title: "Add Secret"
method: POST
path: "/compute/script/{id}/secrets"
tags: ["Secret"]
---

# Add Secret

`POST /compute/script/{id}/secrets`

## Path parameters

- `id` integer, required

## Request body

- EdgeScriptAddSecretModel
  - `Name` string, required
  - `Secret` string, nullable

## Response `200`

The script with the requested ID

- EdgeScriptSecretModel
  - `Id` integer
  - `Name` string, nullable
  - `LastModified` string, date-time

## Other responses

- `400` — The request validation failed
- `401` — The request authorization failed
- `404` — The 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/revisions/9e622620664b/schema)
