Create or update a secret on a function. Marks the function out-of-sync; the next POST /deploy re-publishes the Lambda with the new env. Keys must match [A-Z_][A-Z0-9_]* (uppercase env-var style) and cannot start with reserved prefixes (AWS_, LAMBDA_, etc).
curl --request PUT \
--url https://api.zavu.dev/v1/functions/{functionId}/secrets/{key} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"value": "<string>"
}
'{}Documentation Index
Fetch the complete documentation index at: https://docs.zavu.dev/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Secret updated.
The response is of type object.
curl --request PUT \
--url https://api.zavu.dev/v1/functions/{functionId}/secrets/{key} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"value": "<string>"
}
'{}