---
title: "PATCH /v1/accounts/{account_id}/secrets/{secret_id}"
method: PATCH
path: "/v1/accounts/{account_id}/secrets/{secret_id}"
tags: ["gateway.openapi_Gateway"]
---

# PATCH /v1/accounts/{account_id}/secrets/{secret_id}

`PATCH /v1/accounts/{account_id}/secrets/{secret_id}`

## Path parameters

- `account_id` string, required
- `secret_id` string, required

## Request body

- object
  - `keyName` string, required
  - `value` string — The secret value. This field is INPUT_ONLY and will not be returned in GET or LIST responses for security reasons. The value is only accepted when creating or updating secrets.

## Response `200`

A successful response.

- GatewaySecret
  - `name` string, required
  - `keyName` string, required
  - `value` string — The secret value. This field is INPUT_ONLY and will not be returned in GET or LIST responses for security reasons. The value is only accepted when creating or updating secrets.

---

[API](https://skmtc.net/fw-ai-external/apis/gateway-rest-api.md) · [All operations](https://skmtc.net/fw-ai-external/apis/gateway-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fw-ai-external/gateway-rest-api/versions/29a1e4db152c/schema)
