---
title: "Set secrets in group"
method: PUT
path: "/compute/v1/secrets/{group}"
tags: ["Compute"]
---

# Set secrets in group

`PUT /compute/v1/secrets/{group}`

Set or update secrets in a compute secret group. Secrets are encrypted with AES-256-GCM. Use this to manage environment variables and API keys for your compute workloads.

## Path parameters

- `group` string, required

## Request body

- object
  - `secrets` object, required — Key-value pairs of secrets to set
  - `env` string — Environment name (optional, uses default if not specified)

## Response `200`

Secrets successfully set

- object
  - `success` boolean
  - `group` string — Name of the secret group
  - `created` number — Number of new secrets created
  - `updated` number — Number of existing secrets updated
  - `message` string

## Other responses

- `400` — Invalid request - missing secrets, invalid key format, or no environment found
- `401` — Invalid API key
- `404` — Specified environment not found

---

[API](https://skmtc.net/casemark/apis/case-dev-api.md) · [All operations](https://skmtc.net/casemark/apis/case-dev-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/casemark/case-dev-api/versions/5b7e64e6d6f9/schema)
