---
title: "PATCH /v1/api-keys/provider-key/{providerKeyId}"
method: PATCH
path: "/v1/api-keys/provider-key/{providerKeyId}"
tags: ["API Key"]
---

# PATCH /v1/api-keys/provider-key/{providerKeyId}

`PATCH /v1/api-keys/provider-key/{providerKeyId}`

## Path parameters

- `providerKeyId` string, required

## Request body

- UpdateProviderKeyRequest
  - `byokEnabled` boolean
  - `config` RecordStringString — Construct a type with a set of properties K of type T
  - `providerSecretKey` string
  - `providerKey` string

## Response `200`

Ok

- union
  - ResultSuccessIdStringProviderNameString
    - `data` object, required
      - `providerName` string, required
      - `id` string, required
    - `error` null, nullable, required
  - ResultErrorString
    - `data` null, nullable, required
    - `error` string, required

---

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