Update a Template
Use this procedure if you would like to update the Rego in an existing template without creating a new template. The recommended method is to use the Rego Playground to make your changes, then use the Update Template API request to save your changes.
To update a template:
- In the Rego Playground, upload your existing template. (In the JFrog Platform, go to AppTrust > Lifecycle Policies > Rego Playground > Select Template.)
- Choose a template from the list and click Load Template.
- Make your changes to the template either manually or by using the JFrog AI.
- To ensure that your changes are run successfully, do a dry run in the Rego Playground.
- Create an Update Template request in the AppTrust Rest API. Copy your updated Rego from the Rego Playground and paste it into the Rego field in the API request. If you need to update other parameters in the template, update them in the API request.
What’s Next?
Learn how to Delete a Template.
