This topic was automatically generated from Slack. You can find the original thread here.
editing code in custom python step via REST API
hey there - apologies in advance if this is the wrong forum. im using the REST API to create/update workflows. the issue im having is that there doesn’t seem to be an option to edit the python code via api - am i missing a trick? this functionality would really help scale our pipedream usage as we could integrate with our ci/cd process
using a template workflow with http trigger and python step - im able to create a duplicate workflow via api. however, it’s unclear to me what i need to do in the api request to create/update the python code
we currently don’t expose an API for editing the code of existing workflows, but I’m sharing this feedback with the team. Can you share how your CI / CD setup works and more about the use case for editing the code for existing workflows?
thanks for the quick response. we’re using databricks notebooks (python) to deploy custom dashboards and web pages into our product. and pipedream endpoints would allow for more interactivity on these pages. for example, submitting form data to our product database, retrieving data based on user feedback, etc.
id be happy to have a 15-minutes zoom call over the next couple of weeks with you or someone in your team to discuss the use case in more detail.
main REST API gaps for ci/cd integration are:
1/ listing existing workflows by name so that we only create the workflow (endpoint) when it doesnt already exist for that environment
2/ ability to edit custom python code step via api both for new and existing workflows; editing python code for existing workflow is equally important since there is no delete option via api
not sure if that’s a big lift for your team, so perhaps showcasing the use case in more detail may help decide if the juice is worth the squeeze
im based in london, given the time difference, i can meet between 5pm and 6pm (GMT) on tues to thurs this week. 20-mins should suffice. let me know if there’s a time that suits