We are looking to allow our users to use the functionality of Workflow Credentials where we will set the Gallery to Allow Users to Select.
This allows them to specify which type of setting they would like per workflow:
User is not required to specify credentials
User must specify their own credentials
Always run this workflow with these credentials
When we move our workflows between environments, we use APIs to publish those workflows. We are wanting to make sure that the setting the user set on the lower environment from the three options above are set the same way when we publish with an API.
When looking at the v3 APIs, there is an exposed variable that looks like it can help but we have not been able to get it to work (keeps publishing as the default User is not required to specify credentials) and we do not see any documentation how you would pass credentials if they use the setting Always run this workflow with these credentials.
Has anyone run into this and if so, how did you get it to work?
Which resource are you using when you try to add a value there? I don't see it as an option in the initial create/put a Workflow - but I see it in the sample payload in update a workflow. Are you editing a workflow via update a workflow?