Templates

Update a template

All fields are optional — pass only the ones you want to change. Updates take effect on the next review created from this template.

put/api/v1/templates/{id}

Request

  • Base URL: https://api.gatewerk.com
  • URL: https://api.gatewerk.com/api/v1/templates/{id}
  • Auth: HTTP bearer

Request body

namestring
descriptionstring nullable
default_priority'low' | 'normal' | 'high' | 'critical'
enable_review_linksboolean
auto_approveboolean
timeout_secondsinteger nullable
timeout_action'auto_approve' | 'auto_reject' | 'expire'
instructionsstring nullable
changes_timeout_hoursnumber nullable
default_auth_level'public' | 'email_otp' | 'account'
default_expiry_secondsinteger

Response

Updated

object'template' required
idstring required
slugstring required
namestring required
descriptionstring nullable
default_priority'low' | 'normal' | 'high' | 'critical'
project_idstring required
status'draft' | 'active' | 'inactive'
auto_approveboolean
enable_review_linksboolean
default_auth_level'public' | 'email_otp' | 'account'

Pre-fill auth tier for ShareViaLinkDialog (spec section 8.5).

default_expiry_secondsinteger

Pre-fill link expiry in seconds (spec section 8.5). 86400 = 24h, 604800 = 7d, 2592000 = 30d.

timeout_secondsinteger nullable
timeout_action'auto_approve' | 'auto_reject' | 'expire'
instructionsstring nullable
created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.