mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user