Hey there, do we have a way to update env variables in Dagster Cloud programmatically? E.g. updating expiring API access tokens based on refresh tokens?
🤖 1
z
Zach
02/26/2024, 2:52 PM
I think there are CreateSecret / UpdateSecret GraphQL endpoints
p
Péter Péterdi
02/26/2024, 2:59 PM
Thanks! I did not wander yet to this section of the docs. Much appreciated!
z
Zach
02/26/2024, 3:00 PM
It's not really well documented, you kind of have to go diving into the GraphQL playground looking for endpoint treasure
Zach
02/26/2024, 3:00 PM
But it seems that the UI communicates with the backend through the GraphQL interface, so most of the things you can do in the UI are doable programmatically through GraphQL
p
Péter Péterdi
02/26/2024, 3:02 PM
Yeah, I have no problem doing that. Honestly I didn't even know that it's there, so I had no idea where to start. But you pointed me to the right direction!