---
title: "Update user secrets for a function version"
method: PUT
path: "/v2/nvcf/secrets/functions/{functionId}/versions/{versionId}"
tags: ["User Secret Management"]
---

# Update user secrets for a function version

`PUT /v2/nvcf/secrets/functions/{functionId}/versions/{versionId}`

Updates secrets for the specified function version. This endpoint  requires either a bearer token or an api-key with 'update_secrets'  scope in the HTTP Authorization header.

## Path parameters

- `functionId` string, uuid, required
- `versionId` string, uuid, required

## Request body

- UpdateSecretsRequest — Request payload to update secrets
  - `secrets` SecretDto[], required — Secrets
    - `name` string, required — Secret name
    - `value` string, required — Secret value

## Response `200`

OK

---

[API](https://skmtc.dev/brevdev/apis/cloud-functions.md) · [All operations](https://skmtc.dev/brevdev/apis/cloud-functions/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/brevdev/cloud-functions/revisions/add37b001ffc/schema)
