Add a code package to an automation

This call adds a code package to an automation. The default Python version is 3.8.

📘

If you are using Seven Bridges Platform EU, please use the following endpoint: https://eu-api.sbgenomics.com/v2/automation/automations/{automation_id}/packages

Example request body

{  
   "location":"4eb19f03c9b0d61fb6c3c94e",
   "version":"0.0.1",
   "memory_limit": 1000,
   "schema":{
      "inputs":{
         "input1":{
            "type":"String",
            "meta":{
               "ui_type":"text"
            },
            "required":True,
            "default":"None",
            "description":"None"
         }
      },
      "outputs":{
         "output1":{
            "type":"Int",
            "meta":{
               "ui_type":"number"
            },
            "description":"None"
         }
      },
      "settings":{
      },
      "secrets":{
      }
   }
}

Response

See a list of Seven Bridges Platform-specific response codes that may be contained in the body of the response.

Language