feat(coderd): allow specifying a name for a task (#19745)

Relates to https://github.com/coder/internal/issues/955

Add the ability to the tasks endpoint to give a task a custom name.
This commit is contained in:
Danielle Maywood
2025-09-09 11:08:28 +01:00
committed by GitHub
parent b4e4173347
commit f3b152bb06
4 changed files with 98 additions and 8 deletions
+1
View File
@@ -51,6 +51,7 @@ type CreateTaskRequest struct {
TemplateVersionID uuid.UUID `json:"template_version_id" format:"uuid"`
TemplateVersionPresetID uuid.UUID `json:"template_version_preset_id,omitempty" format:"uuid"`
Prompt string `json:"prompt"`
Name string `json:"name,omitempty"`
}
func (c *ExperimentalClient) CreateTask(ctx context.Context, user string, request CreateTaskRequest) (Task, error) {