You can use the REST API to create and manage Server tasks in Octopus. Typical tasks might include:
API examples
Manage server tasks with the Octopus REST API
This section includes examples of how to use the REST API to create and manage Tasks in Octopus.