DBT Cloud: programmatically pass the variable value when calling model/job via API

The problem I’m having

I have a model created in dbt Cloud and we have setup a job to call the model. However, there is a need to call this job via external application (C#). I am using dbt Cloud API to call this job however I need to pass value for a variable when calling the job/model. Since environment variable override is not available via Cloud job API, I can’t achieve it. Is someone experienced similar situation and if there is any solution to achieve it?


You will need to use the steps override parameter.

Note: @Jeremy Yeo originally posted this reply in Slack. It might not have transferred perfectly.

1 Like

thanks, I am currently testing it out.

the step_override works and I have created detailed blog for anyone to refer : https://medium.com/@ashwanilko/dbt-cloud-how-to-pass-runtime-variables-via-api-calls-91518ea8d5b4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.