Create Workflows\Pipelines using API

Hi,

I stuck on creation workflows\pipelines for the application using Harness public graphql API. Introspection query (and docs) shows me only types related to creating\updating applications and users. So the question is does such functionality not supported or I poorly searched?
Or probably the single way to create a workflow is to use the same endpoint as web UI using (https://app.harness.io/gateway/api/workflows?appId=…) with the proper payload?

Please, can you point me in the right direction?

Hi, with the API today, a user cannot create workflows or pipelines. That needs to be created in the UI or via config as code. We allow for the creation of account level entities by GraphQL like users, user groups, secrets… basically everything around the application. The rest needs to be configured via Git sync or config as code

2 Likes

Thank you, Rohan. Probably config as code can help me. Didn’t hear about it before. Need to dig into it

Check out our docs on It: https://docs.harness.io/article/htvzryeqjw-configuration-as-code

1 Like

Thanks @rohan for the quick reply! @elluvium, can check out this Blog Post also for a few ways to accomplish: https://harness.io/2020/01/solving-one-of-continuous-deliverys-biggest-challenges-standardization/

1 Like