@@ -112,9 +112,10 @@ type PreviewParameterValidation struct {
112
112
type DynamicParametersRequest struct {
113
113
// ID identifies the request. The response contains the same
114
114
// ID so that the client can match it to the request.
115
- ID int `json:"id"`
116
- Inputs map [string ]string `json:"inputs"`
117
- OwnerID uuid.UUID `json:"owner_id"`
115
+ ID int `json:"id"`
116
+ Inputs map [string ]string `json:"inputs"`
117
+ // OwnerID if uuid.Nil, it defaults to `codersdk.Me`
118
+ OwnerID uuid.UUID `json:"owner_id"`
118
119
}
119
120
120
121
type DynamicParametersResponse struct {
@@ -125,7 +126,7 @@ type DynamicParametersResponse struct {
125
126
}
126
127
127
128
func (c * Client )TemplateVersionDynamicParameters (ctx context.Context ,userID ,version uuid.UUID ) (* wsjson.Stream [DynamicParametersResponse ,DynamicParametersRequest ],error ) {
128
- conn ,err := c .Dial (ctx ,fmt .Sprintf ("/api/v2/users/%s/ templateversions/%s/parameters" ,userID ,version ),nil )
129
+ conn ,err := c .Dial (ctx ,fmt .Sprintf ("/api/v2/templateversions/%s/parameters" ,userID ,version ),nil )
129
130
if err != nil {
130
131
return nil ,err
131
132
}