pub async fn update(
pool: &PgPool,
actor: &Actor,
id: Uuid,
input: TemplateInput,
) -> AppResult<ResultTemplate>Expand description
Replaces a template’s settings.
§Invariants
- Permission: manager of the project group or administrator (403); a hidden template is a 404.
- Locks: none beyond the row lock of the
UPDATE; the same name and load case as another template gets a 409. - Audit:
result_template.update. - Notifications / webhooks: none.
- Atomic: one transaction.