Set required environment variables for a strategy revision
set_runtime_secret_requirementsSets or clears structured runtime secret requirements for an owned strategy revision. Use this when the strategy code needs non-broker API keys or settings, such as AP_API_KEY. This metadata is checked before starting or updating a bot so missing saved variables are caught before deployment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revisionId | Yes | AiStrategyRevision.id to update | |
| strategyId | No | Strategy.id for ownership resolution | |
| aiStrategyId | No | AiStrategy.id for ownership resolution | |
| runtimeSecretRequirements | Yes | Structured runtime secret requirements for this revision, or null to clear. Use {version:1, requirements:[{label, description, requiredFor:['deploy'], allOf:[{key,title,description}], anyOf:[...]}]}. Use allOf for keys that are all required and anyOf when one key from a group is sufficient. |