Environment Variables
Set Variable Value
Set a scoped value for an environment-variable definition.
POST
Upsert a scoped value for a variable definition. The value is validated against the definition’s
var_format and encrypted if the definition is marked encrypted. The scope is determined by what you pass: nothing for org scope, linked_account_id for linked-account scope, workflow_id for workflow scope.
Authentication
Your Refold API key.
Required (header or body) when setting a linked-account-scoped value.
For linked-account-scoped values you may instead authenticate with a session token (
Authorization: Bearer ...); it is restricted to that account’s scope.Body Parameters
The definition to set a value for.
The value. Validated against the definition’s
var_format.Set the linked-account-scoped value for this account.
Set the workflow-scoped value for this workflow.
Response
- 200 OK
- 400 Bad Request