diff --git a/api/lagoon/client/tasks.go b/api/lagoon/client/tasks.go index 0fcec7c..1df77fd 100644 --- a/api/lagoon/client/tasks.go +++ b/api/lagoon/client/tasks.go @@ -226,7 +226,9 @@ func (c *Client) AddTask(ctx context.Context, environmentID uint, task schema.Ta req, err := c.newRequest("_lgraphql/tasks/addTask.graphql", map[string]interface{}{ "environment": environmentID, - "task": task, + "name": task.Name, + "command": task.Command, + "service": task.Service, }) if err != nil { return err