Skip to main content
PATCH
/
v1
/
accounts
/
{account_id}
/
secrets
/
{secret_id}
cURL
curl --request PATCH \
  --url https://api.fireworks.ai/v1/accounts/{account_id}/secrets/{secret_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "keyName": "<string>",
  "value": "sk-1234567890abcdef"
}'
{
  "name": "<string>",
  "keyName": "<string>",
  "value": "sk-1234567890abcdef"
}

Authorizations

Authorization
string
header
required

Bearer authentication using your Fireworks API key. Format: Bearer <API_KEY>

Path Parameters

account_id
string
required

The Account Id

secret_id
string
required

The Secret Id

Body

application/json
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.

Example:

"sk-1234567890abcdef"

Response

200 - application/json

A successful response.

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.

Example:

"sk-1234567890abcdef"