Script modules and the API

Is there any way to upload script modules via the API in the same was as you can a step template (actiontemplate in the API)?

I’ve had a detailed look through the available links (v3.0) and can’t seem to find anything obvious

Hi,

Thanks for reaching out! It’s ok if you cant find anything obvious, cause in this case the API calls are a bit trickier than most cases. I wrote this Powershell script to Create/Update a script module using the REST API:

https://github.com/Dalmirog/Octopus_Snippets/blob/master/REST%20API/ScriptModules_CreateUpdate.ps1

Hope it helps!

Dalmiro

Thanks mate that’s helpful!