Functions
Set environment variable
Changed onCreate or update one variable. Live functions roll the change out as a new revision with zero downtime. Keys prefixed PORT, K_ or RAFF_ are reserved.
put/api/v1/functions/{function_id}/env
Request
- Base URLhttps://api.rafftechnologies.com
- URLhttps://api.rafftechnologies.com/api/v1/functions/{function_id}/env
- AuthAPI key in header X-API-Key
Path parameters
function_idstring required
Function ID, short id (fn-…), URL slug, or name
Request body
Response
Variable set (response includes the config redeploy when one was started)
Changes
- info
endpoint added
- info