Functions

Set function secret

Changed on

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).

put/v1/functions/{functionId}/secrets/{key}

Request

  • Base URL
    https://api.zavu.dev
  • URL
    https://api.zavu.dev/v1/functions/{functionId}/secrets/{key}
  • Auth
    HTTP bearer

Path parameters

functionIdstring required

Zavu Function ID.

keystring required

Request body

valuestring required

Response

Secret updated.

object required

Changes